Skip to content

Commit e1aa9bd

Browse files
committed
Add documentation for --passphrase option
1 parent c308230 commit e1aa9bd

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,22 @@ Run `$ vendor/bin/openssl help [<command_name>]` to display the usage details fo
1010
### Generate a private key
1111

1212
The default private key file with the name `private.pem` will be generated to the current working directory. You can
13-
specify the `--type` and `--bits` as an option. If you want to keep an existing private key, append the `--no-override`
14-
option to the command.
13+
specify the `--type`, `--bits` and `--passphrase` as an option. If you want to keep an existing private key, append the
14+
`--no-override` option to the command.
1515

1616
```bash
17-
$ vendor/bin/openssl openssl:generate-private-key [<output>]
17+
$ vendor/bin/openssl openssl:generate-private-key [options] [--] [<output>]
1818
```
1919

2020
### Export the public key
2121

2222
The default public key file with the name `public.pem` will be exported to the current working directory. The private
23-
key is expected to be named `private.pem`. It should also be stored in the working directory per default. If you want to
24-
keep an existing public key, append the `--no-override` option to the command.
23+
key is expected to be named `private.pem`. It should also be stored in the working directory per default. Use the
24+
`--passphrase` option when the private key was encrypted by a passphrase. If you want to keep an existing public key,
25+
append the `--no-override` option to the command.
2526

2627
```bash
27-
$ vendor/bin/openssl openssl:export-public-key [<input>] [<output>]
28+
$ vendor/bin/openssl openssl:export-public-key [options] [--] [<input> [<output>]]
2829
```
2930
3031
## Development

0 commit comments

Comments
 (0)