Skip to content

Commit 73a95d1

Browse files
fix(README): update ssh-keygen instructions with correct options to convert to PKCS8 format (#113)
1 parent 3b0c552 commit 73a95d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,11 @@ openssl pkcs8 -topk8 -inform PEM -outform PEM -nocrypt -in private-key.pem -out
227227
### Converting `OpenSSH` to `PKCS#8`
228228

229229
```
230-
cp private-key.pem private-key-pkcs8.key && ssh-keygen -m PKCS8 -N "" -f private-key-pkcs8.key
230+
cp private-key.pem private-key-pkcs8.key && ssh-keygen -p -m PKCS8 -N "" -f private-key-pkcs8.key
231231
```
232232

233+
This command forces a format change by asking `ssh-keygen` to set no password and then output in a different format.
234+
233235
I'm looking for help to create a minimal `OpenSSH` to `PKCS` convert library that I can recommend people to use before passing the private key to `githubAppJwt`. Please create an issue if you'd like to help.
234236

235237
## License

0 commit comments

Comments
 (0)