You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using acme-tiny on Windows to create new Let's Encrypt certificates with OpenSSL 1.1.1k 25 Mar 2021.
The certificate creation is working with one domain in the CSR, however it fails as soon as I added multiple domains as Subject Alternative Name (SAN) with the following error:
'detail': 'Error finalizing order :: Order includes different number of names than CSR specifies',
'status': 403
The log output for "Found domains" only shows domain, so the error is expected from there.
Cause
The cause is, that the SAN domains are not found by the regex (on my machine).
This is happening, as the openssl output contains \r\n as line breaks (on my machine) and the regex is only looking for \n as linebreaks.
Workaround / Fix
I could fix it (for me) by adding additional \r? to the regex.
Original code:
subject_alt_names = re.search(r"X509v3 Subject Alternative Name: (?:critical)?\n +([^\n]+)\n", out.decode('utf8'), re.MULTILINE|re.DOTALL)
Issue description
I am using acme-tiny on Windows to create new Let's Encrypt certificates with OpenSSL 1.1.1k 25 Mar 2021.
The certificate creation is working with one domain in the CSR, however it fails as soon as I added multiple domains as Subject Alternative Name (SAN) with the following error:
The log output for "Found domains" only shows domain, so the error is expected from there.
Cause
The cause is, that the SAN domains are not found by the regex (on my machine).
This is happening, as the openssl output contains
\r\n
as line breaks (on my machine) and the regex is only looking for\n
as linebreaks.Workaround / Fix
I could fix it (for me) by adding additional
\r?
to the regex.Original code:
subject_alt_names = re.search(r"X509v3 Subject Alternative Name: (?:critical)?\n +([^\n]+)\n", out.decode('utf8'), re.MULTILINE|re.DOTALL)
acme-tiny/acme_tiny.py
Line 96 in 0a9afb2
Workaround code (added
\r?
before every\n
):subject_alt_names = re.search(r"X509v3 Subject Alternative Name: (?:critical)?\r?\n +([^\r?\n]+)\r?\n", out.decode('utf8'), re.MULTILINE|re.DOTALL)
The text was updated successfully, but these errors were encountered: