zEitEr
Super Moderator
Hello,
Let's Encrypt script from Directadmin fails with OpenSSL 1.1.0 with the error:
OpenSSL 1.1.0:
has no sha command.
OpenSSL 1.0.2:
Could you please add a check of OpenSSL version to adjust command depending on OpenSSL version?
Working with OpenSSL 1.1.0:
Let's Encrypt script from Directadmin fails with OpenSSL 1.1.0 with the error:
Code:
Invalid command 'sha'; type "help" for a list.
OpenSSL 1.1.0:
Code:
# /usr/bin/openssl help 2>&1 | grep sha
md5 mdc2 rmd160 sha1
sha224 sha256 sha384 sha512
has no sha command.
OpenSSL 1.0.2:
Code:
# /usr/local/ssl/bin/openssl help 2>&1 | grep sha
sha sha1
Could you please add a check of OpenSSL version to adjust command depending on OpenSSL version?
Working with OpenSSL 1.1.0:
Code:
THUMBPRINT=`echo -n "${FOR_THUMBPRINT}" | tr -d ' ' | ${OPENSSL} sha256 -binary | base64_encode`