acme.sh icon indicating copy to clipboard operation
acme.sh copied to clipboard

Base64 decoding of eab-hmac-key larger than 64 characters fails on CentOS 6

Open swalterfub opened this issue 1 year ago • 1 comments

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).

swalterfub avatar Apr 13 '23 15:04 swalterfub

Yes I have taken the latest code, sorry was missing --debug 2in 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]
[...]

swalterfub avatar Apr 13 '23 15:04 swalterfub