step crypto change-pass

NAME

step crypto change-pass – change password of an encrypted private key (PEM or JWK format)

USAGE

step crypto change-pass key-file [–out=file]

DESCRIPTION

step crypto change-pass extracts the private key from a file and encrypts disk using a new password by either overwriting the original encrypted key or writing a new file to disk.

POSITIONAL ARGUMENTS

key-file
The PEM or JWK file with the encrypted key.

OPTIONS

–out=file, –output-file=file
The file new encrypted key path. Default to overwriting the key positional argument
-f=value, –force=value
Force the overwrite of files without asking.

EXAMPLES

Change password for PEM formatted key:

$ step crypto change-pass key.pem

Change password for PEM formatted key and write encrypted key to different file:

$ step crypto change-pass key.pem --out new-key.pem

Change password for JWK formatted key:

$ step crypto change-pass key.jwk

Change password for JWK formatted key:

$ step crypto change-pass key.jwk --out new-key.jwk