| 7 | | this generates a key and csr |
| | 9 | Ensure that the prefix for the .key and .csr is you domain name. |
| | 10 | |
| | 11 | This command requires the following user input : |
| | 12 | |
| | 13 | {{{#!rst |
| | 14 | |
| | 15 | .. code-block:: python |
| | 16 | |
| | 17 | Generating a 2048 bit RSA private key |
| | 18 | ........+++ |
| | 19 | .................................+++ |
| | 20 | writing new private key to 'uhlbriccsext01.xuhl-tr.nhs.uk.key' |
| | 21 | ----- |
| | 22 | You are about to be asked to enter information that will be incorporated |
| | 23 | into your certificate request. |
| | 24 | What you are about to enter is what is called a Distinguished Name or a DN. |
| | 25 | There are quite a few fields but you can leave some blank |
| | 26 | For some fields there will be a default value, |
| | 27 | If you enter '.', the field will be left blank. |
| | 28 | ----- |
| | 29 | Country Name (2 letter code) [AU]:UK |
| | 30 | State or Province Name (full name) [Some-State]:Leicestershire |
| | 31 | Locality Name (eg, city) []:Leicester |
| | 32 | Organization Name (eg, company) [Internet Widgits Pty Ltd]:University Hospitals of Leicester NHS Trust |
| | 33 | Organizational Unit Name (eg, section) []:Cardiovascular |
| | 34 | Common Name (e.g. server FQDN or YOUR name) []:uhlbriccsext01.xuhl-tr.nhs.uk |
| | 35 | Email Address []: |
| | 36 | |
| | 37 | Please enter the following 'extra' attributes |
| | 38 | to be sent with your certificate request |
| | 39 | A challenge password []: Pa55word |
| | 40 | An optional company name []: |
| | 41 | |
| | 42 | }}} |
| | 43 | |
| | 44 | This command generates a .key and .csr |
| | 45 | |
| | 46 | uhlbriccsext01.xuhl-tr.nhs.uk |
| | 47 | |
| | 48 | sudo openssl req -new -newkey rsa:2048 -sha256 -nodes -keyout uhlbriccsext01.xuhl-tr.nhs.uk.key -out uhlbriccsext01.xuhl-tr.nhs.uk.csr |