This is an automated email from the ASF dual-hosted git repository.

tbouron pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-docs.git


The following commit(s) were added to refs/heads/master by this push:
     new 6f356bf  Updates instructions for generating RSA key with latest 
OpenSSL
     new f1cac62  Merge pull request #293 from nakomis/fix/ssh-keygen-docs
6f356bf is described below

commit 6f356bfd0aa44fe807717d4ca5daf42eaa6773db
Author: Martin Harris <git...@nakomis.com>
AuthorDate: Wed Sep 18 14:41:14 2019 +0100

    Updates instructions for generating RSA key with latest OpenSSL
---
 guide/locations/_ssh-keys.md | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/guide/locations/_ssh-keys.md b/guide/locations/_ssh-keys.md
index ef4091a..d087922 100644
--- a/guide/locations/_ssh-keys.md
+++ b/guide/locations/_ssh-keys.md
@@ -23,7 +23,16 @@ and no one snooping on the network can decrypt of any of the 
traffic.
 If you don't have an SSH key, create one with:
 
 ```bash
-$ ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
+$ ssh-keygen -t rsa -N "" -m PEM -f ~/.ssh/id_rsa
+```
+
+**Note:** For previous versions of OpenSSL, the `-m PEM` flag is not necessary.
+However, for newer versions of OpenSSL, if the `-m PEM` flag is omitted, the
+key produced will be in OPENSSL format, not RSA format. To determine if a key
+is in the correct format, `cat` the key and the first line should read as 
follows:
+
+```bash
+-----BEGIN RSA PRIVATE KEY-----
 ```
 
 

Reply via email to