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
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
Specification
The
--root-key-fileorPK_ROOT_KEYmay be password encrypted. Theagent startandbootstrapcommands should check if the PEM is encrypted, and decrypt it with the--password. This means the same--passwordis 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
--root-key-filewas brought inTasks