diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index ad0a158..093e7b1 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -351,10 +351,22 @@ easyrsa_openssl() { case $openssl_command in makesafeconf) has_config=true;; - ca|req|srp|ts|genpkey) has_config=true;; + ca|req|srp|ts) has_config=true;; *) has_config=false;; esac + case "$osslv_major" in + 3) + case $openssl_command in + genpkey) has_config=true;; + *) : ;; # ok + esac + ;; + 1) : ;; # ok + '') : ;; # Unset then this is init-pki + *) die "Unsupported openssl version: $osslv_major" + esac + if ! $has_config; then "$EASYRSA_OPENSSL" "$openssl_command" "$@" return