- Source:
Methods
(async, static) changePassword(instanceOptions, newSecret) → {Promise.<void>}
Parameters:
Name | Type | Description |
---|---|---|
instanceOptions |
InstanceOptions | The same options that one would use to start the instance for which the password will be changed. |
newSecret |
string |
For all secret key in hex string format stored encrypted with a key derived from a secret and stored in the "private" storage area:
- Use the given old password to read and decrypt the secret keys
- Store a copy of the secret-key file with the same name and the extension .bak
- Encrypt the secret key with a key derived from the new secret
- Store the new encrypted secret-key in place of the old one
- When all keys are re-encrypted, remove all the .bak files that were created.
- Source:
Returns:
Type: Promise.<void>