On Tue, Apr 07, 2020 at 10:00:05AM -0700, Jason Proctor wrote: > Turns out, d2i_PUBKEY() does exactly the thing. > The advantage over picking BIGNUMs out of the SPKI bundle is that the > code doesn't need to know the key size. It is also algorithm independent. Works not only with RSA, but also with DSA (deprecated), ECDSA, EdDSA, and any future public key types. -- Viktor.