Skip to content

Commit f94d7f5

Browse files
committed
fix: actually respect --new-key-version when uploading RSA keys
1 parent 7aceb6f commit f94d7f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/pro/javacard/gp/GPTool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ public static void main(String[] argv) throws Exception {
464464
// Get public key
465465
PublicKey key = GPCrypto.pem2pubkey(fin);
466466
if (key instanceof RSAPublicKey) {
467-
gp.putKey((RSAPublicKey) key, 0x73);
467+
gp.putKey((RSAPublicKey) key, keyVersion);
468468
}
469469
}
470470
}

0 commit comments

Comments
 (0)