400 Bad Request` response: { "type": "urn:ietf:params:acme:error:malformed", "detail": "Error parsing certificate code example
Example: php afosto / yaac urn:ietf:params:acme:error:malformed 405
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