-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
developmentStandard developmentStandard developmentr&d:polykey:core activity 2Cross Platform Cryptography for JavaScript PlatformsCross Platform Cryptography for JavaScript Platforms
Description
Specification
The --root-key-file or PK_ROOT_KEY may be password encrypted. The agent start and bootstrap commands should check if the PEM is encrypted, and decrypt it with the --password. This means the same --password is used to decrypt (if encrypted) and to encrypt the root key.
This is important in case the root key is loaded from another PK node path. Or just generated in some other way.
Additional context
- Replace node-forge RSA Keypair With ed25519/x25519 Keypair #168 - this should still work when we move beyond RSA
- Backup Key File In Case User Forgets Keynode Passphrase #128
- Override key generation for all tests #420 - where this feature of using
--root-key-filewas brought in
Tasks
- Check if PEM is encrypted
- Use password (which has to be have been supplied already), as it is mandatory option
- Remember if recovery code is supplied instead, then it should be ignored
- Document in this issue the precedence of root key file, recovery code, loading from disk, and generating a new root key from scratch
Metadata
Metadata
Assignees
Labels
developmentStandard developmentStandard developmentr&d:polykey:core activity 2Cross Platform Cryptography for JavaScript PlatformsCross Platform Cryptography for JavaScript Platforms