With the pyOpenSSL back end of the openssl_privatekey module deprecated in Ansible 2.9, a colleague started looking at the cryptography back end. According to the documentation:
…the “cipher” parameter must be set to “auto” when using the cryptography back end. There does not seem to be a way, using the cryptography back end, to specify the cipher used to encrypt the private key.
Does anybody know why? I don’t see that as a feature request:
With the pyOpenSSL back end of the openssl_privatekey module
deprecated in Ansible 2.9, a colleague started looking at the
cryptography back end. According to the documentation:
...the "cipher" parameter must be set to "auto" when using the
cryptography back end. There does not seem to be a way, using the
cryptography back end, to specify the cipher used to encrypt the
private key.
Does anybody know why? I don't see that as a feature request:
Thank you, Felix! I guess I'll have to submit a pull request[1].
Is there a particular reason Ansible is deprecating pyOpenSSL? It seems it has more features and is still an active project[2]. (The last change was not too long ago in November 2019.)
Thank you, Felix! I guess I'll have to submit a pull
request[1]. Is there a particular reason Ansible is deprecating
pyOpenSSL? It seems it has more features and is still an active
project[2]. (The last change was not too long ago in November 2019.)
**Note:** The Python Cryptographic Authority **strongly suggests** the
use of pyca/cryptography where possible. If you are using pyOpenSSL for
anything other than making a TLS connection **you should move to
cryptography and drop your pyOpenSSL dependency**.
Besides that, working with pyOpenSSL is really not that much fun. I'd
rather get rid of the pyOpenSSL backends yesterday than somewhen in the
future...