📜  php afosto yaac urn:ietf:params:acme:error:malformed 405 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:04.140000             🧑  作者: Mango

代码示例1
I found the solution, error was on toDer function on Helper.php, I'm on windows and this returned an empty string.
Changed line from this:
$lines = explode(PHP_EOL, $pem);
To this:
$lines = preg_split('/\r\n|\r|\n/', $pem);

Now is working as expected

Thanks