I'm trying to bend a little bit of custom TLS - one possible use case for me is a HendrixDeploy object which uses an ethereum keypair to self-sign a certificate.
So I'm wondering: is it currently possible to use an ECC keypair for TLS with Twisted?
Here's what I've discovered:
twisted.internet.sssl.ContextFactory has a method, use_privatekey(). This thing wants an OpenSSL.crypto.PKey object. And, lo and behold, PKey offers a facility, from_cryptography_key(), which attempts to use a key from
cryptography.io, from whence I'm generating keys anyway. However, it expects an RSA or DSA key, not an EC or ECDSA key.
Glyph suggested that, instead of trying to handle PKeys myself, I might try loading PEM files with txsni or the like.