how can I get the certificate chain from an end certificate?

2006-05-17 Thread camino (sent by Nabble.com)
i have an end x509 certificate ,and i hope to get the certificate chain do openssl has a function like CertGetCertificateChain in windows api? thanks -- View this message in context: http://www.nabble.com/how-can-I-get-the-certificate-chain-from-an-end-certificate--t1640417.html#a4443193 Sen

Re: PKCS7_verify

2006-05-17 Thread camino (sent by Nabble.com)
i have tried openssl smime -sign -in before.eml -signer 666.pem -inkey 666key.pem -out signed.eml -certfile thmid.cer and then verified it. it works thank you very much! -- View this message in context: http://www.nabble.com/PKCS7_verify-t1634754.html#a4442652 Sent from the OpenSSL - Dev forum

PKCS7_verify

2006-05-17 Thread camino (sent by Nabble.com)
when i got a signed smime letter signed by PKCS7_sign suppose the certificate chain is myca -> mycertificate so the PKCS7_verify is ok but if the certificate chain is myca -> myissueca -> mycertificate so the pkcs7_verify will fail even i use openssl smime -verify -certfile my.cer -CAfile

Re: how can i find out a certificate 's type

2006-05-14 Thread camino (sent by Nabble.com)
thank you very much i have work it out according to your advice :) -- View this message in context: http://www.nabble.com/how-can-i-find-out-a-certificate-%27s-type-t1618690.html#a4387624 Sent from the OpenSSL - Dev forum at Nabble.com. ___

how can i find out a certificate 's type

2006-05-14 Thread camino (sent by Nabble.com)
i have a x509 certificate but how can i find out it is a root ca certificate or a intermidiate certificate or just a normal certificate issued to a user? thanks -- View this message in context: http://www.nabble.com/how-can-i-find-out-a-certificate-%27s-type-t1618690.html#a4386448 Sent from the

Re: How to extract certificate from PKCS#7 message?

2006-05-11 Thread camino (sent by Nabble.com)
thank you!your reply is very useful! -- View this message in context: http://www.nabble.com/How-to-extract-certificate-from-PKCS-7-message--t1598596.html#a4352792 Sent from the OpenSSL - Dev forum at Nabble.com. __ OpenSSL Proje

Re: How to extract certificate from PKCS#7 message?

2006-05-11 Thread camino (sent by Nabble.com)
thank you! your reply is very useful -- View this message in context: http://www.nabble.com/How-to-extract-certificate-from-PKCS-7-message--t1598596.html#a4352784 Sent from the OpenSSL - Dev forum at Nabble.com. __ OpenSSL Proje

How to extract certificate from PKCS#7 message?

2006-05-10 Thread camino (sent by Nabble.com)
i have a signed letter, how can i extract the certificate from it ? and in command line i can use openssl smime -pk7out -in messagefile | openssl pkcs7 -print_certs but i wonder how to achieve it in program and there are many cases that i know how to achieve in command-line but don't know how