Skip to content

Add key generation support to nv2 #66

@lachie83

Description

@lachie83

The nv2 binary doesn't currently have a way to generate a key pair for signing which makes it harder than it needs to be for new users to use nv2. Please add a subcommand that generates a keypair.

I suggest nv2 keygen as a subcommand. At a minimum, it needs to perform the functional equivalent of the following as mentioned here.

openssl req \
  -x509 \
  -sha256 \
  -nodes \
  -newkey rsa:2048 \
  -days 365 \
  -subj "/CN=${REGISTRY}/O=wabbit-networks inc/C=US/ST=Washington/L=Seattle" \
  -addext "subjectAltName=DNS:${REGISTRY}" \
  -keyout ./wabbit-networks.key \
  -out ./wabbit-networks.crt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions