Creating and Applying SSL Certificates for Webmin Admin Interface

Channel:
Subscribers:
14,400
Published on ● Video Link: https://www.youtube.com/watch?v=8cqDW3UQy1I



Duration: 3:00
1,944 views
4


#Webmin #SSL #HTTPS

Full steps can be found at https://i12bretro.github.io/tutorials/0118.html

--------------------------------------------------------------------
Prerequisites
--------------------------------------------------------------------
   - A XCA PKI database  https://youtu.be/ezzj3x207lQ
 
--------------------------------------------------------------------
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: nettools.i12bretro.local
         countryName: US
         stateOrProvinceName: Virginia
         localityName: Northern
         organizationName: i12bretro
         organizationUnitName: i12bretro Certificate Authority
         commonName: nettools.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 .pem extension and verify the export format is PEM + Key (*.pem)
   04. Click OK
 
--------------------------------------------------------------------
Applying the Certificates
--------------------------------------------------------------------
   01. Download PuTTY  https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
   02. Connect to the Linux host via PuTTY
   03. Install Webmin if it is not already installed
         wget http://prdownloads.sourceforge.net/webadmin/webmin_1.941_all.deb
         sudo dpkg -i webmin_1.941_all.deb
         sudo apt-get -f install
   04. Copy the certificates exported above to the Linux device
   05. Copy the certificates exported above to /etc/webmin
         cp /home/pi/Downloads/webmin.pem /etc/webmin
   06. Open a web browser and navigate to Webmin via https://DNSorIP:10000
   07. Login with the root username and password
   08. Navigate to Webmin ≫ Webmin Configuration ≫ SSL Encryption
   09. Click the browse button next to the Private key file field
   10. Navigate to /etc/webmin and select the webmin.pem certificate
   11. Make sure the certificate file is set to Same file as private key
   12. Click the save button
   13. Webmin will apply the certificate and restart
   14. Close the web browser and relaunch using the DNS or IP address setup in the SSL certificate
 


### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro







Tags:
Browser Based
Browser Based Tools
Certificate
Certificate Authority
Certificates
Debian
HTTPS
How To
Linux
PKI
Private Key Infrastructure
SSL
SSL Certificates
Secure
Self-Signed Certificates
Self-Signed HTTPS
Self-Signed PKI
Self-Signed SSL
Server Administration
System Administration
Tutorial
Web Administration
Web Based
Web Based Tools
Web Tools
Webmin
X Certificate And Key Management
X Certificate Key Manager
XCA
i12bretro