Windows .crl to .pem for nginx

限于喜欢 提交于 2021-02-19 01:52:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!