[clug] X.509 SubjectPublicKeyInfo fields

jm jeffm at ghostgun.com
Wed Jan 25 20:41:26 UTC 2023


I've been using the python cryptography library to manipulate X509 
certs. The Subject field appears to be OIDs similar to that used in 
SNMP, ie, ASN.1

see
https://github.com/pyca/cryptography/blob/main/docs/x509/reference.rst

Hope that helps,
Jeff.

On 25/1/23 21:46, Michael Still via linux wrote:
> Hi,
>
> I'm playing with a protocol at the moment which has 162 bytes embedded into
> a packet for a "1024 bit RSA public key in X.509 SubjectPublicKeyInfo
> format". I am having troubles finding documentation on exactly how one
> would generate a RSA keypair in python and then encode it into this format.
>
> I can generate a RSA keypair a variety of ways, its the finding
> documentation on what a SubjectPublicKeyInfo actually is which is killing
> me. I've looked at RFC3279, and RFC5280 but am not smart enough to
> understand what they're saying...
>
> Hints welcome.
>
> Thanks,
> Michael





More information about the linux mailing list