aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-06-07 06:35:35 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2017-06-07 06:37:18 +0200
commit3495eca5ad752d189f3aaf830b4bbadf73300639 (patch)
treeba1013b834ef30f236d33d10eb158b530e27d834
parent1ec8274103af9f67174a3055c095d76a0b4cc3e4 (diff)
downloadacme-tinier-3495eca5ad752d189f3aaf830b4bbadf73300639.tar.gz
acme-tinier-3495eca5ad752d189f3aaf830b4bbadf73300639.tar.xz
acme-tinier-3495eca5ad752d189f3aaf830b4bbadf73300639.zip
Fix reliability
-rwxr-xr-xacme-tinier.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/acme-tinier.pl b/acme-tinier.pl
index 266e4ac..6ff2a86 100755
--- a/acme-tinier.pl
+++ b/acme-tinier.pl
@@ -34,7 +34,7 @@ my $header = { alg => 'RS256', jwk => { kty => 'RSA',
n => b64(pack 'H*', $pub_hex =~ s/\s|://gr)
}};
-my $json = JSON::PP->new->pretty(0);
+my $json = JSON::PP->new->pretty(0)->canonical(1);
my $thumbprint = b64(sha256($json->encode($header->{jwk})));
# Pipe data through an external program, keeping status in $?