Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 793
Владимир Ренский Avatar asked Apr 16 '15 11:04

Владимир Ренский


1 Answers

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

like image 169
Prabhu Avatar answered Sep 29 '22 02:09

Prabhu