Re: How to distinguish between RSA and DSA keys in certificates?

2006-05-14 Thread Brad Hards
On Sunday 14 May 2006 18:54 pm, sefi wrote: > If anyone knows a way how to load a certificate from a file and obtain > it's X509* I would be glad. PEM_read_bio_X509() Brad pgp9HIS1bW880.pgp Description: PGP signature

Re: How to distinguish between RSA and DSA keys in certificates?

2006-05-14 Thread sefi
Hi, > >> I have to check that a certificate is encrypted with RSA and not DSA. I >> can't find any API function for that. >> Please help me. >> > > EVP_PKEY *pkey; > > if ( (pkey = X509_get_pubkey(cert)) == NULL ){ > goto err; > } > if (pkey->type == EVP_PKEY_RSA ){ > // RSA > e

Re: How to distinguish between RSA and DSA keys in certificates?

2006-05-13 Thread Marek Marcola
Hello, > I have to check that a certificate is encrypted with RSA and not DSA. I > can't find any API function for that. > Please help me. EVP_PKEY *pkey; if ( (pkey = X509_get_pubkey(cert)) == NULL ){ goto err; } if (pkey->type == EVP_PKEY_RSA ){ // RSA else if (pkey->type == EV

How to distinguish between RSA and DSA keys in certificates?

2006-05-13 Thread sefi
Hi, I have to check that a certificate is encrypted with RSA and not DSA. I can't find any API function for that. Please help me. Philipp __ OpenSSL Project http://www.openssl.org User Support Mailin