aboutsummaryrefslogtreecommitdiff
path: root/sign.pl
diff options
context:
space:
mode:
Diffstat (limited to 'sign.pl')
-rwxr-xr-xsign.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/sign.pl b/sign.pl
index 137a7d7..c7e51ad 100755
--- a/sign.pl
+++ b/sign.pl
@@ -53,7 +53,7 @@ sub sign($$$$) {
principal => { email => $email }
};
- my $header = {alg => "RS256"};
+ my $header = {typ => "JWT", alg => "RS256"};
my $header_bytes = encode_base64_url(encode_json($header));
my $cert_bytes = encode_base64_url(encode_json($cert));
my $string_to_sign = $header_bytes . "." . $cert_bytes;