Factory function that creates a NetscapeSPKI object. If the enc argument
is present, it should be a base64-encoded string representing a NetscapeSPKI
object, as returned by the b64_encode method.
Dump the private key pkey into a buffer string encoded with the type
type, optionally (if type is FILETYPE_PEM) encrypting it
using cipher and passphrase.
passphrase must be either a string or a callback for providing the
pass phrase.