Closed ldanielburr closed 8 years ago
What should the resulting class be? Just pem.Key
or am I missing something?
@hynek - In my case the key is still a RSA private key, but I don't see anything in the pem package itself that cares whether the resulting class is pem.Key or pem.RSAPrivateKey, so probably changing the mapping from "RSA PRIVATE KEY": RSAPrivateKey to "PRIVATE KEY": Key would work.
Hope this does what you need.
@hynek - Yes, that works nicely, thank you.
Files which contain keys in PKCS 8 format, e.g., "BEGIN PRIVATE KEY" are not found by pem.parse. It appears that pem.parse only looks for PKCS 1 format, e.g., "BEGIN RSA PRIVATE KEY".