You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -365,6 +365,33 @@ Now do the signing. Note how we configure the signature to use the above algorit
365
365
366
366
You can always look at the actual code as a sample (or drop me a [mail](mailto:[email protected])).
367
367
368
+
## Asynchronous signing and verification
369
+
370
+
If the private key is not stored locally and you wish to use a signing server or Hardware Security Module (HSM) to sign documents you can create a custom signing algorithm that uses an asynchronous callback.
The function `sig.checkSignature` may also use a callback if asynchronous verification is needed.
368
395
369
396
## X.509 / Key formats
370
397
Xml-Crypto internally relies on node's crypto module. This means pem encoded certificates are supported. So to sign an xml use key.pem that looks like this (only the begining of the key content is shown):
0 commit comments