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
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
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
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[] =
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-
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