Support for traditional OpenSSL and PKCS8 RSA private key serialization

This temporarily uses the backend to do it until the alternate approach is ready. DSA/ECDSA and public key support will follow if this is deemed worthy.
Oh, sorry, you should OpenSSH, I thought you meant OpenSSH traditional;
yes, agreed that OpenSSH isn't remotely PEM.

On Sun Dec 28 2014 at 9:20:30 AM Paul Kehrer <notifications@github.com>
wrote:

> In docs/hazmat/primitives/interfaces.rst
> <https://github.com/pyca/cryptography/pull/1503#discussion-diff-22298995>:
>
> > +    Extends :class:`RSAPrivateKey`. Deprecated in favor of
> > +    :class:`RSAPrivateKeyWithSerialization`.
> > +
> > +    .. method:: private_numbers()
> > +
> > +        Create a
> > +        :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNumbers`
> > +        object.
> > +
> > +        :returns: An
> > +            :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNumbers`
> > +            instance.
> > +
> > +.. class:: RSAPrivateKeyWithSerialization
> > +
> > +    .. versionadded:: 0.7
>
> the OpenSSH public key format has no encapsulation boundaries. It's
> partially base64 encoded but the key format and comment are both ASCII as
> well. That would seem to fall outside the bounds of the actual PEM spec?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/pyca/cryptography/pull/1503/files#r22298995>.
>