Skip to content

Password decrypt the --root-key-file #433

Description

@CMCDragonkai

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

  1. Check if PEM is encrypted
  2. Use password (which has to be have been supplied already), as it is mandatory option
  3. Remember if recovery code is supplied instead, then it should be ignored
  4. Document in this issue the precedence of root key file, recovery code, loading from disk, and generating a new root key from scratch

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions