Re: Trying to get a public info for a certificate

2019-06-03 Thread Daniel Pedraza
Thanks a lot, Matt and Viktor! You guys are absolutely right, X509_get0_pubkey_bitstr gives me the same struct that was once inside of cert_info->key->public_key. @Viktor I had also tried your second approach (didn't know about the first one!) and for some reason it doesn't have the "correct" data

Re: Trying to get a public info for a certificate

2019-06-03 Thread Viktor Dukhovni
On Mon, Jun 03, 2019 at 10:40:02AM -0500, Daniel Pedraza wrote: > There's a part of the code where we're doing a sha256 hash of the public > key of our certificate. On the older OpenSSL, we were able to get the > public key by doing cert->cert_info->key->public_key->data. On the newer > version, w

Re: Trying to get a public info for a certificate

2019-06-03 Thread Matt Caswell
On 03/06/2019 16:40, Daniel Pedraza wrote: > Hi guys! > > I'm trying to upgrade an old C project from OpenSSL 1.0.2 to the newest 1.1.1 > version. Everything's going smoothly, except for one little detail: > > There's a part of the code where we're doing a sha256 hash of the public key > of >

Trying to get a public info for a certificate

2019-06-03 Thread Daniel Pedraza
Hi guys! I'm trying to upgrade an old C project from OpenSSL 1.0.2 to the newest 1.1.1 version. Everything's going smoothly, except for one little detail: There's a part of the code where we're doing a sha256 hash of the public key of our certificate. On the older OpenSSL, we were able to get the