HI there, unfortunately I'm receiving an error from CertBot, which I'm having issues resolving.
I'm trying to manually a certificate using a CSR generated from Azure.
My domain is: yuzedata.com
I ran this command: certbot certonly --manual --csr .\test.csr
It produced this output: Failed to parse CSR file: test.csr
The operating system my web server runs on is (include version):
Windows
I can login to a root shell on my machine (yes or no, or I don't know): yes
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): certbot 1.24.0
I received the following error in the log file.
2022-07-12 16:50:14,287:DEBUG:certbot._internal.main:certbot version: 1.24.0
2022-07-12 16:50:14,287:DEBUG:certbot._internal.main:Location of certbot entry point: C:\Program Files (x86)\Certbot\bin\certbot.exe
2022-07-12 16:50:14,287:DEBUG:certbot._internal.main:Arguments: ['-v', '--preferred-challenges', 'dns', '--manual', '--csr', './star-yuzecase-com.csr', '--preconfigured-renewal']
2022-07-12 16:50:14,287:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2022-07-12 16:50:14,316:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "C:\Program Files (x86)\Certbot\pkgs\certbot\crypto_util.py", line 256, in import_csr_file
csr = load(crypto.FILETYPE_ASN1, data)
File "C:\Program Files (x86)\Certbot\pkgs\OpenSSL\crypto.py", line 2984, in load_certificate_request
_openssl_assert(req != _ffi.NULL)
File "C:\Program Files (x86)\Certbot\pkgs\OpenSSL_util.py", line 69, in openssl_assert
exception_from_error_queue(error)
File "C:\Program Files (x86)\Certbot\pkgs\OpenSSL_util.py", line 55, in exception_from_error_queue
raise exception_type(errors)
OpenSSL.crypto.Error: [('asn1 encoding routines', 'asn1_check_tlen', 'wrong tag'), ('asn1 encoding routines', 'asn1_item_embed_d2i', 'nested asn1 error')]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files (x86)\Certbot\pkgs\certbot\crypto_util.py", line 259, in import_csr_file
csr = load(PEM, data)
File "C:\Program Files (x86)\Certbot\pkgs\OpenSSL\crypto.py", line 2984, in load_certificate_request
_openssl_assert(req != _ffi.NULL)
File "C:\Program Files (x86)\Certbot\pkgs\OpenSSL_util.py", line 69, in openssl_assert
exception_from_error_queue(error)
File "C:\Program Files (x86)\Certbot\pkgs\OpenSSL_util.py", line 55, in exception_from_error_queue
raise exception_type(errors)
OpenSSL.crypto.Error: [('PEM routines', 'get_name', 'no start line')]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "runpy.py", line 197, in run_module_as_main
File "runpy.py", line 87, in run_code
File "C:\Program Files (x86)\Certbot\bin\certbot.exe_main.py", line 29, in
sys.exit(main())
File "C:\Program Files (x86)\Certbot\pkgs\certbot\main.py", line 19, in main
return internal_main.main(cli_args)
File "C:\Program Files (x86)\Certbot\pkgs\certbot_internal\main.py", line 1651, in main
args = cli.prepare_and_parse_args(plugins, cli_args)
File "C:\Program Files (x86)\Certbot\pkgs\certbot_internal\cli_init.py", line 454, in prepare_and_parse_args
return helpful.parse_args()
File "C:\Program Files (x86)\Certbot\pkgs\certbot_internal\cli\helpful.py", line 213, in parse_args
self.handle_csr(parsed_args)
File "C:\Program Files (x86)\Certbot\pkgs\certbot_internal\cli\helpful.py", line 276, in handle_csr
typ, csr, domains = crypto_util.import_csr_file(csrfile, contents)
File "C:\Program Files (x86)\Certbot\pkgs\certbot\crypto_util.py", line 261, in import_csr_file
raise errors.Error("Failed to parse CSR file: {0}".format(csrfile))
certbot.errors.Error: Failed to parse CSR file: D:\yuzedata\Tesseract\scripts\certificates\star-yuzecase-com.csr
2022-07-12 16:50:14,316:ERROR:certbot._internal.log:Failed to parse CSR file: D:\yuzedata\Tesseract\scripts\certificates\star-yuzecase-com.csr
Really hope you can help. Thanks a lot in advance.
With kind regards,
Erwin