Skip to content

Commit

Permalink
fix: actually respect --new-key-version when uploading RSA keys
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpaljak committed Jan 16, 2019
1 parent 7aceb6f commit f94d7f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/pro/javacard/gp/GPTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ public static void main(String[] argv) throws Exception {
// Get public key
PublicKey key = GPCrypto.pem2pubkey(fin);
if (key instanceof RSAPublicKey) {
gp.putKey((RSAPublicKey) key, 0x73);
gp.putKey((RSAPublicKey) key, keyVersion);
}
}
}
Expand Down

0 comments on commit f94d7f5

Please sign in to comment.