Difference between revisions of "Generate a CSR with SANs"

From IVS Wiki
Jump to: navigation, search
Line 1: Line 1:
 
{{Section | content =  
 
{{Section | content =  
# Connect to the Valt appliance via SSH.
+
<ol>
# Type in the following, and press {{Keyboard | key = Enter}}  
+
<li> Connect to the Valt appliance via SSH</li>
#:{{Code Block - Mini | text = <span class="code_regex">nano</span> <span class="code_file">csr_details.conf</span>}}
+
<li> Type in the following, and press {{Keyboard | key = Enter}}</li>
# Copy and paste the following into nano:
+
<ul>
 +
<li>{{Code Block - Mini | text = <span class="code_regex">nano</span> <span class="code_file">csr_details.conf</span>}}</li>
 +
</ul>
 +
<li> Copy and paste the following into nano:</li>
 +
{{Aside | content = Make sure to update the CSR with your information.}}
 
<pre>[req]
 
<pre>[req]
 
default_bits = 2048
 
default_bits = 2048
Line 23: Line 27:
 
DNS.1 = your-new-domain.com
 
DNS.1 = your-new-domain.com
 
DNS.2 = www.your-new-domain.com</pre>
 
DNS.2 = www.your-new-domain.com</pre>
# Update the information to match your installation. This is the same information you would normally put in a CSR.
+
<li> Update the information to match your installation. This is the same information you would normally put in a CSR.</li>
# Press {{Keyboard | key = CTRL}} + {{Keyboard | key = X}}
+
<li> Press {{Keyboard | key = CTRL}} + {{Keyboard | key = X}}</li>
# Enter {{Keyboard | key = Y}}.
+
<li> Enter {{Keyboard | key = Y}}.</li>
# Press {{Keyboard | key = Enter}}.
+
<li> Press {{Keyboard | key = Enter}}.</li>
# Type in the following, and press {{Keyboard | key = Enter}}
+
<li> Type in the following, and press {{Keyboard | key = Enter}}</li>
#: ''Make sure to update the CSR and key path for your installation.''
+
<ul>
#:{{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>}}
+
<li>{{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>}}</li>
 +
</ul>
 +
{{Aside | content = Make sure to update the CSR and key path for your installation.}}
 +
</ol>
 
}}
 
}}

Revision as of 15:02, 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:
  4. Make sure to update the CSR with your information.

    [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
  5. Update the information to match your installation. This is the same information you would normally put in a CSR.
  6. Press CTRL + X
  7. Enter Y.
  8. Press Enter.
  9. Type in the following, and press Enter
    • openssl req -new -sha256 -nodes -out valt.csr -newkey rsa:2048 -keyout valt.key -config csr_details.conf

    Make sure to update the CSR and key path for your installation.