问题
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
回答1:
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
来源:https://stackoverflow.com/questions/29673910/windows-crl-to-pem-for-nginx