Fix reliability

master
Přemysl Eric Janouch 7 years ago
parent 1ec8274103
commit 3495eca5ad
Signed by: p
GPG Key ID: B715679E3A361BE6

@ -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 $?