Page 1 of 1

SSL conversion from .p7b to .crt

Posted: Wed May 06, 2015 12:25 pm
I need to add a SSL cert to Nagios. I have the following cert provided to me by internal security sources.
Nagios.p7b
I've converted it to a .cer and a .pem. I think I need a conversion syntax to .crt to use with this procedure?
http://assets.nagios.com/downloads/nagi ... s%20XI.pdf

Thanks
James

Re: SSL conversion from .p7b to .crt

Posted: Wed May 06, 2015 1:26 pm
by jdalrymple
Hi jpye - quite often the crt and cer extensions are used interchangeably. They're both x509 certificates. The important part in your case is that they are PEM encoded.

Code: Select all

openssl x509 -in Nagios.cer -text -noout
If you don't get an error you're probably in good shape. If you do get an error you'll likely need to convert from DER encoding to PEM:

Code: Select all

openssl x509 -in Nagios.cer -inform der -outform pem -out Nagios.crt

Re: SSL conversion from .p7b to .crt

Posted: Tue May 12, 2015 8:23 am
Thank you, I had already verified that the cer was valid using openssl but I had not implemented it on the system. I'll go ahead and put the cert in motion and see what happens. Thanks for the reply.

Re: SSL conversion from .p7b to .crt

Posted: Tue May 12, 2015 9:43 am
by lmiltchev
I'll go ahead and put the cert in motion and see what happens. Thanks for the reply.
Let us know how it went and if it is OK to close this topic.