Combining SSL certificates

Adam Vande More amvandemore at gmail.com
Fri Apr 2 16:19:03 UTC 2010


On Fri, Apr 2, 2010 at 9:04 AM, Jerry <freebsd.user at seibercom.net> wrote:

> Is it possible to combine all of the certificates in a chain into one
> *.pem file?
>
> EXAMPLE:
>
> openssl s_client -connect imap.gmail.com:993 -crlf -showcerts
>
> This would show, in this case anyway, two certificates. Could I combine
> both certs into on file, example: gmail-imap.pem and then run
> 'c_rehash' on the file or do I have to save both certs in separate
> files to complete the chain?
>

Doesn't it work to simply concatenate pem's together?  I was my
understanding it was possible to do that, but perhaps order of concatenation
matters.  So make sure you're dealing with pem's and cat together with root
being last and I think it should work.


-- 
Adam Vande More


More information about the freebsd-questions mailing list