-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build-ca, gen-req, sign-req: Use write_easyrsa_ssl_cnf_tmp() earlier
This guarantees that a working EasyRSA SSL config file exists and that both $EASYRSA_SSL_CONF and $OPENSSL_CONF are set to that file. If the initial file has been user, or by EasyRSA internally, edited then that file is used, in place. With these expanson rules applied: This file will be OpenSSL:Un-expanded, LibreSSL:Expanded or expanded by global option --force-safe-ssl or $EASYRSA_FORCE_SAFE_SSL. If the file in place is absent or recognised by SHA256 hash then it will be replaced by here-doc expansion, including SSL Lib expansion as required. The effected code here is verify_file(), which now calls $EASYRSA_OPENSSL directly. Submitting to $OPENSSL_CONF place, or error. Improve comments in the code. Signed-off-by: Richard T Bonhomme <[email protected]>
- Loading branch information
1 parent
e95cda9
commit 761736f
Showing
1 changed file
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters