Difference between revisions of "Generate a CSR with SANs"

From IVS Wiki
Jump to: navigation, search
Line 1: Line 1:
<div class="section">
+
{{Section | content =  
 
# Connect to the Valt appliance via SSH.
 
# Connect to the Valt appliance via SSH.
 
# Type in the following, and press {{Keyboard | key = Enter}}  
 
# Type in the following, and press {{Keyboard | key = Enter}}  
<div class="codeText">nano csr_details.conf</div>
+
#:{{Code Block - Mini | text = <span class="code_regex">nano</span> <span class="code_file">csr_details.conf</span>}}
 
# Copy and paste the following into nano:
 
# Copy and paste the following into nano:
 
<pre>[req]
 
<pre>[req]
Line 29: Line 29:
 
# Type in the following, and press {{Keyboard | key = Enter}}
 
# Type in the following, and press {{Keyboard | key = Enter}}
 
#: ''Make sure to update the CSR and key path for your installation.''  
 
#: ''Make sure to update the CSR and key path for your installation.''  
<div class="codeText">openssl req -new -sha256 -nodes -out your-new-domain.com.csr -newkey rsa:2048 -keyout your-new-domain.com.key -config csr_details.conf</div>
+
#:{{Code Block - Mini | text = <span class="code_regex">openssl</span> req -new -sha256 -nodes -out <span class="code_file">valt.csr</span> -newkey rsa:2048 -keyout <span class="code_file">valt.key</span> -config <span class="code_file">csr_details.conf</span>}}
</div>
+
}}

Revision as of 15:57, 1 August 2023

  1. Connect to the Valt appliance via SSH.
  2. Type in the following, and press Enter
    nano csr_details.conf
  3. Copy and paste the following into nano:
[req]
default_bits = 2048
prompt = no
default_md = sha256
req_extensions = req_ext
distinguished_name = dn
[ dn ]
C=US
ST=New York
L=Rochester
O=End Point
OU=Testing Domain
emailAddress=your-administrative-address@your-awesome-existing-domain.com
CN = www.your-new-domain.com
[ req_ext ]
subjectAltName = @alt_names
[ alt_names ]
DNS.1 = your-new-domain.com
DNS.2 = www.your-new-domain.com
  1. Update the information to match your installation. This is the same information you would normally put in a CSR.
  2. Press CTRL + X
  3. Enter Y.
  4. Press Enter.
  5. Type in the following, and press Enter
    Make sure to update the CSR and key path for your installation.
    openssl req -new -sha256 -nodes -out valt.csr -newkey rsa:2048 -keyout valt.key -config csr_details.conf