great. thanks victor. i need this cert to import to keystore because that https is an webservice with self signed certificate and i need axis to treat it as trusted.
On Tuesday 17 April 2007 17:15:04 Victor B. Wagner wrote: > On 2007.04.17 at 16:17:03 +0200, M.Zdila/EpiSoftware Ltd. wrote: > > hi > > > > i would like to use it in bash script so the certificate would be saved > > to a cert.pem and then imported to java keystore using keytool. possible? > > Use openssl s_client command, and then something like sed or awk to > extract certificate from output. > > If you are not familiar with sed or awk, you can also filter output of > s_client via openssl x509 command - it would strip away anything but > certificate. > > Following command line: > > echo|openssl s_client -connect site.com:443 |openssl x509 -out cert.pem > > works for me. > > > But why do you want web-site certificat in your keystore? Typically only > CA certificates are stored there. Does site in question use > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List openssl-users@openssl.org > Automated List Manager [EMAIL PROTECTED] -- Martin Zdila Analyst/Developer EpiSoftware Slovakia Ltd. Letna 27, 043 14 Kosice tel:+421-908-363-848 tel:+421-55-6770-420 mailto:[EMAIL PROTECTED] http://www.episoftware.com xmpp:[EMAIL PROTECTED] callto://m.zdila/ ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]