pyopenssl
pyopenssl copied to clipboard
Usage of X509_NAME_oneline is ``strongly discouraged''
From the openssl 1.1.0f manual page for X509_NAME_PRINT_EX(3SSL)
NOTES
The functions X509_NAME_oneline() and X509_NAME_print() are legacy functions which produce a non standard output form, they don't handle multi character fields and
have various quirks and inconsistencies. Their use is strongly discouraged in new applications.
I noticed that pyopenssl.crypto.X509Name.repr uses X509_NAME_oneline to generate part of the repr:
https://github.com/pyca/pyopenssl/blob/57c2f030886a838f44e88949295e66b759e46c65/src/OpenSSL/crypto.py#L647