extractSubjectPublicKeyInfo
Extract the SubjectPublicKeyInfo bytes from a certificate.
In the TBSCertificate, the SPKI is located after the version (optional), serialNumber, signature algorithm, issuer, validity, and subject fields.
Return
The full DER encoding of the SubjectPublicKeyInfo element.
Parameters
derBytes
The complete certificate DER encoding.
Throws
if the SPKI cannot be found.