Skip to content

Commit

Permalink
Fixed signature algorithm extraction when specified in keyalias (Goog…
Browse files Browse the repository at this point in the history
…le Cloud KMS)
  • Loading branch information
Pascal Davoust committed Jan 16, 2024
1 parent 93da678 commit 5df3a06
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ public SigningServicePrivateKey getPrivateKey(String alias, char[] password) thr
// full key with version specified
if (alias.contains(":")) {
// syntax with the algorithm appended to the alias
alias = alias.substring(0, alias.indexOf(':'));
algorithm = alias.substring(alias.indexOf(':') + 1) + "_SIGN";
alias = alias.substring(0, alias.indexOf(':'));
} else {
Certificate[] chain = getCertificateChain(alias);
if (chain != null && chain.length > 0) {
Expand Down

0 comments on commit 5df3a06

Please sign in to comment.