Lab: Signing the NSX CSR with a Microsoft (root) CA Server

From Iwan
Jump to: navigation, search

In this lab I am working with the following software and versions:

Software Version Filename
Windows Server 2019 en_windows_server_2019_updated_feb_2020_x64_dvd_de383770.iso
  1. Sign the NSX CSR with a Microsoft SA Server

Untitled.png

The Steps

  • STEP 1: Open the Microsoft Active Directory Certificate Services
  • STEP 2: Sign the NSX CSR
  • STEP 3: Save the signed .csr file

STEP 1: Open the Microsoft Active Directory Certificate Services

Untitled%201.png

STEP 2: Sign the NSX CSR

Select “Request a certificate”.

Untitled%201.png

Select “advanced certificate request”.

Untitled%202.png

Copy/Paste the content of the non-signed .csr into the request field.

Make sure to select the correct Certificate Template: “VMware NSX Certificates”

Click “Submit”.

Untitled%203.png

Select “Base 64 encoded” and download both the “certificate: and the “certificate chain”

Untitled%204.png

STEP 3: Save the signed .csr file

Download them in the same folder as the initial (not-signed) .csr file is stored.

Untitled%205.png

The nsx-signed.cer output:
-----BEGIN CERTIFICATE-----
MIIGgzCCBWugAwIBAgITFQAAAAarDMgMgI9fKwAAAAAABjANBgkqhkiG9w0BAQsF
ADBGMRMwEQYKCZImiZPyLGQBGRYDbGFiMRQwEgYKCZImiZPyLGQBGRYEc2RkYzEZ
MBcGA1UEAxMQc2RkYy1TVEVQLVdJTi1DQTAeFw0yMjA4MjcxOTA4NDlaFw0yNDA4
MjYxOTA4NDlaMH0xCzAJBgNVBAYTAk5MMQswCQYDVQQIEwJaSDESMBAGA1UEBxMJ
Um90dGVyZGFtMRQwEgYDVQQKEwtOU1ggQWNhZGVteTESMBAGA1UECxMJRWR1Y2F0
aW9uMSMwIQYDVQQDExpwb2QtMTIwLW5zeHQtbG0uc2RkYy5sb2NhbDCCASIwDQYJ
KoZIhvcNAQEBBQADggEPADCCAQoCggEBAMoJLyy4gLLUnUKIHDanOInr2HZled4Y
d44nZRcb0Vu/KaVuhastM21q8TgkSDJwPKSILUr5+42lVUYwH42708a7DL8fKVap
dbnOcHD33WTJ3xlI6kMZ2IhVtswyw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4ZxY+SeRo7woZWcdN46CbWAe+ui+CV79A4JHp9GJro++PoWW+DMl
MQA=
-----END CERTIFICATE-----

Continue with >> Lab: Replacing the self-signed SSL certificates with CA-signed certificates