Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:
math.ubc.ca
I ran this command:
openssl x509 -in bad-wdp.crt -noout -text
It produced this output:
4277976124:error:0D07209B:asn1 encoding routines:ASN1_get_object:too long:asn1_lib.c:147:
4277976124:error:0D068066:asn1 encoding routines:ASN1_CHECK_TLEN:bad object header:tasn_dec.c:1185:
4277976124:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error:tasn_dec.c:374:Type=X509
4277976124:error:0906700D:PEM routines:PEM_ASN1_read_bio:ASN1 lib:pem_oth.c:83:
My web server is (include version):
N/A
The operating system my web server runs on is (include version):
N/A
My hosting provider, if applicable, is:
N/A
I can login to a root shell on my machine (yes or no, or I don't know):
Yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
No
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):
dehydrated-0.7.1
More details:
Occasionally, a renewal of a cert causes a corrupt (at least by my version of openssl) cert to be issued. I've tested this with other more versions of OpenSSL with the same results. I re-run the certbot and this usually produces a valid cert. Scanning the help section shows some people included \r\n in the CSR or other things, but this doesn't explain why it only fails some of the. time. I ran
openssl asn1parse -inform pem -in bad-wdp.crt
and assuming this utility parses bytes in order and the first error halts at the point of corruption, the tail end of the output is
763:d=4 hl=2 l= 76 cons: SEQUENCE
765:d=5 hl=2 l= 3 prim: OBJECT :X509v3 Certificate Policies
770:d=5 hl=2 l= 69 prim: OCTET STRING [HEX DUMP]:30433008060667810C0102013037060B2B0601040182DF130101013028302606082B06010505070201161A687474703A2F2F6370732E6C657473656E63727970742E6F7267
841:d=4 hl=4 l= 260 cons: SEQUENCE
845:d=5 hl=2 l= 10 prim: OBJECT :CT Precertificate SCTs
857:d=5 hl=3 l= 245 prim: OCTET STRING [HEX DUMP]:0481F200F000760041C8CAB1DF22464A10C6A13A0942875E4E318B1B03EBEB4BC768F090629606F600000181046FB414000004030047304502210096F88840725369E0ABCE99531F023D7B61EF6F43C485658A19EF72F53E97D81D0220615819743D1C5FBEFD49B885ABF2FC70FE6D4700000181046FB412000004030047304502210095B06A22FA85A026380B33287A665D629C05CDE79531EE0EE91015A98CB67AB802201DFD21816FE3F2CCBBB0B2DD4D783D8F58989155CE1C014EED3AC1853F5DFD21300D06092A864886F70D01010B05000382010100ABFD59117EBABBC28A15043DD65318C2561ABC99D9F48C65436F967F
Error in encoding
4277976124:error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long:asn1_lib.c:157: