From efedc607b2f440798059ac56364935299b2e88ac Mon Sep 17 00:00:00 2001 From: raven-kg Date: Tue, 21 May 2019 18:28:32 +0600 Subject: [PATCH] fix openssl binary path --- notify/ses.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/notify/ses.sh b/notify/ses.sh index 910c5a29..692df24c 100644 --- a/notify/ses.sh +++ b/notify/ses.sh @@ -58,8 +58,8 @@ ses_send() { _saveaccountconf_mutable AWS_SES_FROM "$AWS_SES_FROM" _date="$(date -R)" - _signature="$(echo -n "$_date" | _openssl_bin dgst -sha256 -hmac "$AWS_SECRET_KEY" -binary | _base64 -w 0)" - _endpoint="https://email.$AWS_REGION.amazonaws.com/" + _signature="$(echo -n "$_date" | ${ACME_OPENSSL_BIN:-openssl} dgst -sha256 -hmac "$AWS_SECRET_KEY" -binary | base64 -w 0)" + _endpoint="https://email.$AWS_REGION.amazonaws.com" export _H1="X-Amzn-Authorization: AWS3-HTTPS AWSAccessKeyId=$AWS_ACCESS_KEY, Algorithm=HmacSHA256, Signature=$_signature" export _H2="Content-Type: application/x-www-form-urlencoded" @@ -77,4 +77,4 @@ ses_send() { return 1 fi -} +} \ No newline at end of file