Re: [Cryptography-dev] Processing public key algorithm 'ecdsa-with-SHA256'

2017-04-24 Thread Paul King via Cryptography-dev
Thanks Alex. I am now appreciating how good your documentation is! I am struggling to do a test for the type of public key. In the documentation it shows an example for RSA but I am too stupid to get it to work. print cert.public_key() print type( cert.public_key() )

Re: [Cryptography-dev] Processing public key algorithm 'ecdsa-with-SHA256'

2017-04-24 Thread Paul King via Cryptography-dev
Sorry. Being very stupid. from cryptography.hazmat.primitives.asymmetric import ec print isinstance(cert.public_key(), ec.EllipticCurvePublicKey) > On 24 Apr 2017, at 08:21, Paul King via Cryptography-dev > wrote: > > Thanks Alex. > > I am now appreciating how good your documentation is! >

Re: [Cryptography-dev] Processing public key algorithm 'ecdsa-with-SHA256'

2017-04-24 Thread Paul Kehrer
The addition of an examples section in x509 to cover common questions like this might be useful actually. If you're interested in submitting a PR adding that we'd be happy to review! -Paul On April 24, 2017 at 2:24:00 AM, Paul King via Cryptography-dev ( [email protected]) wrote: Sorr