Hi,

I want to import a chain of certificates from a server.

Following command show me the entire certificate chain

          *openssl s_client -connect <host>:<port> -showcerts*

Following command only writes first certificate on the chain to a file

          *openssl s_client -showcerts -connect <host>:<port> </dev/null
2>/dev/null|openssl x509 -outform PEM >mycertfile.pem*

Is there a way I can save all the certificates in the chain to local files
without copy and pasting one by one ?

Thanks.
-- 
Best Regards,

*Thilini Cooray*
Software Engineer
Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
E-mail : thili...@wso2.com

WSO2 Inc. www.wso2.com
lean.enterprise.middleware
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to