Add ECDSA signature R and S to X509 structure

Billy Brumley bbrumley at
Sat Aug 17 12:35:02 UTC 2019

Hey Ken,

> I have an ECDSA signature supplied to me as R and S byte arrays and
> lengths (from an HSM).
> How do I add them to the X509 structure?
> Is there an API, a set of calls, or do you have any hints?

You might be looking for ECDSA_SIG_set0:

You might find some snippets in ecdsatest.c.

Hope it helps,


More information about the openssl-users mailing list