Skip to content

Commit

Permalink
fix: Reimport public key only
Browse files Browse the repository at this point in the history
  • Loading branch information
microshine committed Aug 13, 2024
1 parent f1dbe71 commit ac81db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/signed_xml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export class SignedXml implements XmlCore.IXmlSerializable {
}
}

if (key && this.Algorithm) {
if (key && key.type === "public" && this.Algorithm) {
key = await this.reimportKey(key, this.Algorithm);
}

Expand Down

0 comments on commit ac81db9

Please sign in to comment.