Hi Steve,

Yes that did the job. Fortunately I only have 3-4 CAs in the chain so the
file size is relatively small.

Thank you for the valuable tip.

Cheers,
George



Dr. Stephen Henson wrote:
> 
> On Thu, Dec 08, 2011, gkout wrote:
> 
>> 
>> Hello everybody,
>> 
>> Nice to find you. My first post in the forum is about printing the text
>> of
>> all CA cetificates in a chain file.
>> 
>> openssl x509 -text -noout -in CA_chain_file will not do the job as it
>> only
>> prints the first cert in the chain and the rest seem to be ignored.
>> 
>> Is this an openssl command limitation? 
>> Do I need a script to print all the certificates in the chain?
>> 
>> Thank you all on advance.
>> 
> 
> This is technically a one line script that makes use of a PKCS#7 structure
> and
> may do what you want:
> 
> openssl crl2pkcs7 -nocrl -certfile certs.pem \
>       | openssl pkcs7 -print_certs -text
> 
> Not recommended if you have a GB file of certificates as it stores the lot
> in
> memory.
> 
> Steve.
> --
> Dr Stephen N. Henson. OpenSSL project core developer.
> Commercial tech support now available see: http://www.openssl.org
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [email protected]
> Automated List Manager                           [email protected]
> 
> 

-- 
View this message in context: 
http://old.nabble.com/CA-chain-file-print-text-tp32934805p32940592.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to