Skip to content

Commit

Permalink
fix Elliptic Curve algorithm name (#1010) (#1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianTim authored and lesv committed Jan 31, 2018
1 parent cf157fd commit eda9f14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private static String createJwtEs(String projectId, String privateKeyFile) throw

byte[] keyBytes = Files.readAllBytes(Paths.get(privateKeyFile));
PKCS8EncodedKeySpec spec = new PKCS8EncodedKeySpec(keyBytes);
KeyFactory kf = KeyFactory.getInstance("ES256");
KeyFactory kf = KeyFactory.getInstance("EC");

return jwtBuilder.signWith(SignatureAlgorithm.ES256, kf.generatePrivate(spec)).compact();
}
Expand Down

0 comments on commit eda9f14

Please sign in to comment.