简体   繁体   中英

Windows .crl to .pem for nginx

I have windows .crl file. Can I convert it into a .pem file to nginx using openssl?

openssl crl -in crl.crl -noout -text  
unable to load CRL
139765490861728:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: X509 CRL

The error means that your crl file is not encoded properly in PEM format with right header and footer. Have the right PEM encoded crl file.

If the CRL is in DER format:

openssl crl -in your_current.crl -inform DER -out crl.pem

Now you can use crl.pem as you mentioned in question.

openssl crl -in crl.pem -noout -text

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM