EVP_PKEY_ASN1_METHOD(3) conflicts

2020-07-10 Thread Colton Jenkins
I'm currently working on implementing EVP_PKEY_cmp for ruby's openssl wrapper. Initially, I was going by the documentation provided for EVP_PKEY_cmp, but the maintainer discovered conflicting documentation. https://www.openssl.org/docs/man1.1.1/man3/EVP_PKEY_ASN1_METHOD.html States the following

Re: Generating X509 Version 2 certificate

2020-07-10 Thread Viktor Dukhovni
On Fri, Jul 10, 2020 at 05:46:44PM +0530, Varun Rapelly wrote: > I would like to create a self signed certificate with X509 version 2. Why exactly "version 2". Are you per chance confused by the wire encoding of X509 versions? X.509 version 1 <-> 0 in certificate version field /* original

Re: get data from X509_EXTENSION in openSSL 1.1.1.

2020-07-10 Thread Viktor Dukhovni
On Fri, Jul 10, 2020 at 05:25:03PM +0530, prudvi raj wrote: > we are upgrading our codebase to 1.1.1 from 1.0.2k.Here's a code snippet > causing error : > > ext = X509_get_ext(X509, n); > data = ext->value->data; Given: X509_EXTENSION *ext; you can obtain /* ext->object */ ASN1_

Generating X509 Version 2 certificate

2020-07-10 Thread Varun Rapelly
Hi, I would like to create a self signed certificate with X509 version 2. I know that we need to configure "Issuer and subject unique identifiers" for X509 v2 format certificate, but not able to find the configuration required (in openssl.conf) to enable it. Please let me know how to enable the

Re: get data from X509_EXTENSION in openSSL 1.1.1.

2020-07-10 Thread Kenneth Goldman
> From: prudvi raj > To: openssl-users@openssl.org > Date: 07/10/2020 07:55 AM > Subject: [EXTERNAL] get data from X509_EXTENSION in openSSL 1.1.1. > Sent by: "openssl-users" > > Hi All, > > we are upgrading our codebase to 1.1.1 from 1.0.2k.Here's a code > snippet causing error : > >  ext = X50

get data from X509_EXTENSION in openSSL 1.1.1.

2020-07-10 Thread prudvi raj
Hi All, we are upgrading our codebase to 1.1.1 from 1.0.2k.Here's a code snippet causing error : ext = X509_get_ext(X509, n); data = ext->value->data; How do i get the data value from X509_EXTENSION object. since forward declarations are not allowed (compiler error) & i couldn't find a suitabl