mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-14 02:11:45 +00:00
add debug info
This commit is contained in:
parent
4d8b99a307
commit
24d2a8b9d5
4
acme.sh
4
acme.sh
@ -406,7 +406,7 @@ _getfile() {
|
|||||||
#Usage: multiline
|
#Usage: multiline
|
||||||
_base64() {
|
_base64() {
|
||||||
if [ "$1" ]; then
|
if [ "$1" ]; then
|
||||||
_debug3 "base64 multiline:$1"
|
_debug3 "base64 multiline:'$1'"
|
||||||
$OPENSSL_BIN base64 -e
|
$OPENSSL_BIN base64 -e
|
||||||
else
|
else
|
||||||
_debug3 "base64 single line."
|
_debug3 "base64 single line."
|
||||||
@ -933,7 +933,7 @@ _calcjwk() {
|
|||||||
|
|
||||||
modulus=$($OPENSSL_BIN rsa -in "$keyfile" -modulus -noout | cut -d '=' -f 2)
|
modulus=$($OPENSSL_BIN rsa -in "$keyfile" -modulus -noout | cut -d '=' -f 2)
|
||||||
_debug3 modulus "$modulus"
|
_debug3 modulus "$modulus"
|
||||||
n="$(printf "%s" "$modulus" | _h2b | _base64 | _urlencode)"
|
n="$(printf "%s" "$modulus" | _h2b | _base64| _urlencode)"
|
||||||
_debug3 n "$n"
|
_debug3 n "$n"
|
||||||
|
|
||||||
jwk='{"e": "'$e'", "kty": "RSA", "n": "'$n'"}'
|
jwk='{"e": "'$e'", "kty": "RSA", "n": "'$n'"}'
|
||||||
|
Loading…
Reference in New Issue
Block a user