(require("crx3/lib/createKeyPair"))(keyPathopt) → {module:crx3/lib/createKeyPair.KeyPair}
- Description:
Read private key from a file, if available.
If not found, create a new one.
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
keyPath |
string |
<optional> |
''
|
pointing to private key file |
Returns:
Type Definitions
KeyPair
- Source:
Properties:
| Name | Type | Description |
|---|---|---|
privateKey |
external:crypto.KeyObject | |
publicKey |
external:crypto.KeyObject | |
savedFile |
string | null |