csrgenerator.com
csrgenerator.com copied to clipboard
ASN1 error on generated CSR
The CSR file generated has an invalid INTEGER (l=0) which generates errors on openssl. Error information:
Error reading certificate request in test.csr
140173603737536:error:0D0E20DE:asn1 encoding routines:c2i_ibuf:illegal zero content:crypto/asn1/a_int.c:154:
140173603737536:error:0D08303A:asn1 encoding routines:asn1_template_noexp_d2i:nested asn1 error:crypto/asn1/tasn_dec.c:609:Field=version, Type=X509_REQ_INFO
140173603737536:error:0D08303A:asn1 encoding routines:asn1_template_noexp_d2i:nested asn1 error:crypto/asn1/tasn_dec.c:609:Field=req_info, Type=X509_REQ
140173603737536:error:0906700D:PEM routines:PEM_ASN1_read_bio:ASN1 lib:crypto/pem/pem_oth.c:33:
Difference between CSRs generated by openssl and csrgenerator.com
openssl:
0:d=0 hl=4 l=1297 cons: SEQUENCE
4:d=1 hl=4 l= 761 cons: SEQUENCE
8:d=2 hl=2 l= 1 prim: INTEGER :00
11:d=2 hl=2 l= 119 cons: SEQUENCE
13:d=3 hl=2 l= 11 cons: SET
15:d=4 hl=2 l= 9 cons: SEQUENCE
17:d=5 hl=2 l= 3 prim: OBJECT :countryName
csrgenerator.com:
0:d=0 hl=4 l= 699 cons: SEQUENCE
4:d=1 hl=4 l= 419 cons: SEQUENCE
8:d=2 hl=2 l= 0 prim: INTEGER :BAD INTEGER:[]
10:d=2 hl=2 l= 119 cons: SEQUENCE
12:d=3 hl=2 l= 11 cons: SET
14:d=4 hl=2 l= 9 cons: SEQUENCE
16:d=5 hl=2 l= 3 prim: OBJECT :countryName