setPublicKey
Set a public key for asymmetric encryption. The public key is used for encryption.
| Parameters |
|---|
| PubKey: String with the public key in PEM format. |
| Return values |
|---|
| The function returns a promise that resolves to true when it succeeds or raises an exception if false. |