Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an option to disable expensive OpenSSL 3.x RSA private key checks
This commit adds a new unsafe_skip_rsa_key_validation argument to import_private_key(), import_private_key_and_certs(), read_private_key(), read_private_key_and_certs(), read_private_key_list(), and load_keypairs() which can be used to disable somewhat expensive RSA private key validation code in OpenSSL 3.x, reducing the cost back to what it was in earlier OpenSSL versions. Skipping these checks is only recommended when keys being loaded are from a trusted source. A new set_default_skip_rsa_key_validation() function was also added, to set a global default for whether or not to disable this extra key validation.
- Loading branch information