Create and Apply SSL Certificate to TrueNAS Web UI
12.1 هزار بار بازدید -
12 ماه پیش
-
#TrueNAS
#TrueNAS #SSL #HTTPS
Full steps can be found at https://i12bretro.github.io/tutorials...
--------------------------------------------------------------------
Prerequisites
--------------------------------------------------------------------
- A XCA PKI database Creating a Self-Signed Public Key Inf...
--------------------------------------------------------------------
Create Your SSL Certificate
--------------------------------------------------------------------
01. Launch XCA
02. Open the PKI database if it is not already (File ≫ Open DataBase), enter password
03. Click on the Certificates tab, right click on your Intermediate CA certificate
04. Select New
05. On the Source tab, make sure Use this Certificate for signing is selected
06. Verify your Intermediate CA certificate is selected from the drop down
07. Click the Subject tab
08. Complete the Distinguished Name section
internalName: nas.i12bretro.local
countryName: US
stateOrProvinceName: Virginia
localityName: Northern
organizationName: i12bretro
organizationUnitName: i12bretro Certificate Authority
commonName: nas.i12bretro.local
09. Click the Generate a New Key button
10. Enter a name and set the key size to at least 2048
11. Click Create
12. Click on the Extensions tab
13. Select End Entity from the type list
14. Click Edit next to Subject Alternative Name
15. Add any DNS or IP addresses that the certificate will identify
16. Update the validity dates to fit your needs
17. Click the Key Usage tab
18. Under Key Usage select Digital Signature, Key Encipherment
19. Under Extended Key Usage select Web Server and Web Client Authentication
20. Click the Netscape tab
21. Select SSL Server
22. Click OK to create the certificate
--------------------------------------------------------------------
Exporting Required Files
--------------------------------------------------------------------
01. In XCA, click on the Certificates tab
02. Right click the SSL certificate ≫ Export ≫ File
03. Set the file name with a .crt extension and verify the export format is PEM (*.crt)
04. Click OK
05. Click the Private Keys tab
06. Right click the private key generated for the SSL certificate ≫ Export ≫ File
07. Set the file name with a .pk8 extension and verify the export format is PKCS #8 (*.pk8)
08. Click OK
--------------------------------------------------------------------
Applying the Certificates
--------------------------------------------------------------------
01. Open a web browser and log into the TrueNAS web UI
02. Select Network ≫ Global Configuration
03. Set the Hostname and Domain fields to match the certificate created
04. Click the Save button at the bottom of the form
05. Select System ≫ Certificates from the left navigation
06. Click the Add button at the top right
07. Click the Type dropdown and select Import Certificate
08. Enter Web UI SSL in the Name field
09. Open the .crt file exported earlier in Notepad, copy the contents to the Certificate data field
10. Open the .key file exported earlier in Notepad, copy the contents to the Private key data field
11. Scroll down to the bottom of the page and click Submit
12. Select System ≫ General from the left navigation
13. Select Web UI SSL from the GUI SSL Certificate dropdown
14. Click the Save button at the bottom of the page
15. Check the Confirm checkbox and click Continue to restart the web service
Connect with me and others ###
★ Discord: Discord: discord
★ Reddit: Reddit: i12bretro
★ Twitter: Twitter: i12bretro
Full steps can be found at https://i12bretro.github.io/tutorials...
--------------------------------------------------------------------
Prerequisites
--------------------------------------------------------------------
- A XCA PKI database Creating a Self-Signed Public Key Inf...
--------------------------------------------------------------------
Create Your SSL Certificate
--------------------------------------------------------------------
01. Launch XCA
02. Open the PKI database if it is not already (File ≫ Open DataBase), enter password
03. Click on the Certificates tab, right click on your Intermediate CA certificate
04. Select New
05. On the Source tab, make sure Use this Certificate for signing is selected
06. Verify your Intermediate CA certificate is selected from the drop down
07. Click the Subject tab
08. Complete the Distinguished Name section
internalName: nas.i12bretro.local
countryName: US
stateOrProvinceName: Virginia
localityName: Northern
organizationName: i12bretro
organizationUnitName: i12bretro Certificate Authority
commonName: nas.i12bretro.local
09. Click the Generate a New Key button
10. Enter a name and set the key size to at least 2048
11. Click Create
12. Click on the Extensions tab
13. Select End Entity from the type list
14. Click Edit next to Subject Alternative Name
15. Add any DNS or IP addresses that the certificate will identify
16. Update the validity dates to fit your needs
17. Click the Key Usage tab
18. Under Key Usage select Digital Signature, Key Encipherment
19. Under Extended Key Usage select Web Server and Web Client Authentication
20. Click the Netscape tab
21. Select SSL Server
22. Click OK to create the certificate
--------------------------------------------------------------------
Exporting Required Files
--------------------------------------------------------------------
01. In XCA, click on the Certificates tab
02. Right click the SSL certificate ≫ Export ≫ File
03. Set the file name with a .crt extension and verify the export format is PEM (*.crt)
04. Click OK
05. Click the Private Keys tab
06. Right click the private key generated for the SSL certificate ≫ Export ≫ File
07. Set the file name with a .pk8 extension and verify the export format is PKCS #8 (*.pk8)
08. Click OK
--------------------------------------------------------------------
Applying the Certificates
--------------------------------------------------------------------
01. Open a web browser and log into the TrueNAS web UI
02. Select Network ≫ Global Configuration
03. Set the Hostname and Domain fields to match the certificate created
04. Click the Save button at the bottom of the form
05. Select System ≫ Certificates from the left navigation
06. Click the Add button at the top right
07. Click the Type dropdown and select Import Certificate
08. Enter Web UI SSL in the Name field
09. Open the .crt file exported earlier in Notepad, copy the contents to the Certificate data field
10. Open the .key file exported earlier in Notepad, copy the contents to the Private key data field
11. Scroll down to the bottom of the page and click Submit
12. Select System ≫ General from the left navigation
13. Select Web UI SSL from the GUI SSL Certificate dropdown
14. Click the Save button at the bottom of the page
15. Check the Confirm checkbox and click Continue to restart the web service
Connect with me and others ###
★ Discord: Discord: discord
★ Reddit: Reddit: i12bretro
★ Twitter: Twitter: i12bretro
12 ماه پیش
در تاریخ 1402/05/19 منتشر شده
است.
12,139
بـار بازدید شده