Re: [openssl-users] X509 certificate algorithm

2018-04-25 Thread Ken Goldman
On 08/16/12 09:33, Dr. Stephen Henson wrote: On Thu, Aug 16, 2012, Kenneth Goldman wrote: I call these: d2i_X509() X509_print_fp() which calls pkey_set_type() EVP_PKEY_asn1_find() and that call fails. I've traced the following error down to the rsaOAEP algorithm, wh

Re: X509 certificate algorithm

2012-08-16 Thread Dr. Stephen Henson
On Thu, Aug 16, 2012, Kenneth Goldman wrote: > I call these: > > d2i_X509() > X509_print_fp() > > which calls > pkey_set_type() > EVP_PKEY_asn1_find() > and that call fails. > > I've traced the following error down to the rsaOAEP algorithm, which has a > nid of 919. I

X509 certificate algorithm

2012-08-16 Thread Kenneth Goldman
I call these: d2i_X509() X509_print_fp() which calls pkey_set_type() EVP_PKEY_asn1_find() and that call fails. I've traced the following error down to the rsaOAEP algorithm, which has a nid of 919. I've included both the openssl and dumpasn1 dump of the X509 certificat

Re: Setting x509 Certificate algorithm

2011-04-27 Thread Mike Markley
That did it! Thank you, I'm neck deep into code that I don't fully understand, I greatly appreciate the help. Mike On Wed, Apr 27, 2011 at 3:54 PM, re est wrote: > Hi, > Have you tried changing this >         if (!X509_sign(x,pk,EVP_sha1())) > to >         if (!X509_sign(x,pk,EVP_sha256())) > >

Re: Setting x509 Certificate algorithm

2011-04-27 Thread re est
Hi, Have you tried changing this if (!X509_sign(x,pk,EVP_sha1())) to if (!X509_sign(x,pk,EVP_sha256())) On Thu, Apr 28, 2011 at 4:13 AM, Mike Markley wrote: > I am creating a self signed x509 certificate using code based on the > mkcert.c sample code included in the OpenSSL d

Setting x509 Certificate algorithm

2011-04-27 Thread Mike Markley
I am creating a self signed x509 certificate using code based on the mkcert.c sample code included in the OpenSSL demo sources. I need to set the algorithm to sha256WithRSAEncryption and I cannot figure out how to do this with the APIs. I always end up with sha1WithRSAEncryption. Am I trying to do