Getting cert serial from an OCSP single response

Geoff Swan gswan3 at bigpond.net.au
Sun Oct 30 22:10:37 UTC 2022


Thanks Alexei,

I've got the OCSP_CERTID now, are there methods for getting the serial 
number as a string from this?

Something like this, which does not appear to work any more:

i2s_ASN1_INTEGER(NULL, cid->serialNumber)

- Geoff


On 2022-10-31 9:00 am, Alexei Khlebnikov wrote:
> fre. 28. okt. 2022 kl. 05:25 skrev Geoff Swan <gswan3 at bigpond.net.au>:
>
>     I'm trying to get the cert serial number (or the ocsp_certid
>     structure)
>     from an OCSP single response
>
>
> The following function gets you OCSP_CERTID from OCSP_SINGLERESP:
>
> const OCSP_CERTID *OCSP_SINGLERESP_get0_id(const OCSP_SINGLERESP *x);
>
> Med vennlig hilsen / Best regards,
> Alexei.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20221031/adaa9c95/attachment.htm>


More information about the openssl-users mailing list