Certificates documentation has wrong terminal commands

Bug #1838502 reported by Jason
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Server Guide
New
Undecided
Unassigned

Bug Description

Certificate documentation here <https://help.ubuntu.com/lts/serverguide/certificates-and-security.html>. Both of the below issues are found in the section titled "Generating a Certificate Signing Request (CSR)".

## Trying to generate key without a password

There is a command to generate an insecure key without a password, but entering the command `openssl rsa -in server.key -out server.key.insecure` prompts for a required password. I had success with this command, `openssl req -nodes -new -x509 -in server.key -out server.key.insecure`, but I don't know if it's an exact equivalent.

## Trying to create a CSR

After following the instructions to create the insecure key (using the command I pasted above) and shuffle the key names:

```
openssl rsa -in server.key -out server.key.insecure
mv server.key server.key.secure
mv server.key.insecure server.key
```

I then try to follow the next command, `openssl req -new -key server.key -out server.csr`, and get this output

```
openssl req -new -key server.key -out server.csr
unable to load Private Key
140437462729152:error:0909006C:PEM routines:get_name:no start line:../crypto/pem/pem_lib.c:745:Expecting: ANY PRIVATE KEY
```

I attempted to follow these instructions, modifying them so that each command outputs the properly named file instead of having to rename them afterwards, and that did not help.

And it was at this point that I gave up on these instructions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.