SSL conversion from .p7b to .crt

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
[email protected]
Posts: 8
Joined: Mon Jan 12, 2015 8:20 am

SSL conversion from .p7b to .crt

Post by [email protected] »

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
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: SSL conversion from .p7b to .crt

Post 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
[email protected]
Posts: 8
Joined: Mon Jan 12, 2015 8:20 am

Re: SSL conversion from .p7b to .crt

Post by [email protected] »

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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: SSL conversion from .p7b to .crt

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked