RE: get CA name from user certificate

2006-11-30 Thread Santosh
t: Re: get CA name from user certificate Have you tried to use the code without modifications using the same certificate? If you need to load the X509 certificate use following code. Moreover you may find useful information to call these PEM routines in the manual page(%man PEM). Cheers, Kaus

Re: get CA name from user certificate

2006-11-30 Thread Kaushalye Kapuruge
Have you tried to use the code without modifications using the same certificate? If you need to load the X509 certificate use following code. Moreover you may find useful information to call these PEM routines in the manual page(%man PEM). Cheers, Kaushalye BIO *in; if ((in=BIO_new_file

Re: get CA name from user certificate

2006-11-29 Thread imin macho
kapuruge, thanks a lot for helping. i tried the source code you gave me and added some. here's what I did: AnsiString FName = ExtractFilePath(Application->ExeName) + "temp.crt"; X509 *xca=NULL; char *xca2=NULL; xca2 = FName.c_str(); xca = ReadCertificate(xca2); BIO *out; unsigned char *issue

Re: get CA name from user certificate

2006-11-29 Thread Kaushalye Kapuruge
Ambarish Mitra wrote: You can do something like this: (assuming the cert is a variable -- if the cert is a file in the filesystem, some modificatins is needed) #include ... int main(int argc, char **argv) { X509* pCert; char* str; int ret; char clientCertificate[] =

RE: get CA name from user certificate

2006-11-29 Thread Ambarish Mitra
You can do something like this: (assuming the cert is a variable -- if the cert is a file in the filesystem, some modificatins is needed) #include ... int main(int argc, char **argv) { X509* pCert; char* str; int ret; char clientCertificate[] = "-BEGIN CERTIFICATE-

Re: get CA name from user certificate

2006-11-28 Thread Kaushalye Kapuruge
imin macho wrote: hi i'm really new to this openSSL thingy. is there any function we can use to read/extract CA's name from client certificate? thank you. Macho, You may use following code. Here cert is X509*. Cheers, Kaushalye BIO *out; unsigned char *issuer, *result; int n; out