acme.sh
acme.sh copied to clipboard
Base64 decoding of eab-hmac-key larger than 64 characters fails on CentOS 6
Steps to reproduce
Use a eab-hmac-key with more than 64 characters
Debug log
acme.sh --register-account --eab-kid b70b928c-6153-4d8e-8eb9-b1766e50e416 --eab-hmac-key 96DUZ0YqMm4UedCQWCHJDinhNxzp1P9g1s5uZClA56Ldh0lht6DtBL9980cFqdP1ywWiAicXXX
(key truncated)
[...]
Usage: _hmac hashalg secret [outputhex]
[...]
Adding the -A
parameter in _dbase64()
works, but the parameter is not called (as function is called with "multi" as parameter).
Yes I have taken the latest code, sorry was missing --debug 2
in my example. Here the updated version:
acme.sh --debug 2 --register-account --eab-kid b70b928c-6153-4d8e-8eb9-b1766e50e416 --eab-hmac-key 96DUZ0YqMm4UedCQWCHJDinhNxzp1P9g1s5uZClA56Ldh0lht6DtBL9980cFqdP1ywWiAicXXX
(key truncated)
[...]
Usage: _hmac hashalg secret [outputhex]
[...]