{"id":5645,"date":"2018-04-20T04:52:52","date_gmt":"2018-04-20T03:52:52","guid":{"rendered":"https:\/\/da-manager.com\/blog\/?p=5645"},"modified":"2022-11-28T12:03:42","modified_gmt":"2022-11-28T11:03:42","slug":"install-ssl-certificate-on-webmin-server","status":"publish","type":"post","link":"https:\/\/da-manager.com\/blog\/install-ssl-certificate-on-webmin-server\/","title":{"rendered":"INSTALL SSL CERTIFICATE ON WEBMIN SERVER"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/da-manager.com\/blog\/install-ssl-certificate-on-webmin-server\/#Webmin_is_a_web-based_interface_for_system_administration_of_UNIX_Operating_system_that_includes_managing_user_accounts_disk_quotas_services_or_configuration_files_as_well_as_modify_or_controlling_open_source_apps_from_the_console_or_remotely_Webmin_includes_CGI_programs_and_a_simple_server_and_these_programs_are_written_in_Perl_version_5_without_any_specific_Perl_module_Here_we_are_going_to_explain_how_to_install_SSL_certificate_on_Webmin_server\" >Webmin is a web-based interface for system administration of UNIX Operating system that includes managing user accounts, disk quotas, services or configuration files as well as modify or controlling open source apps from the console or remotely. Webmin includes CGI programs and a simple server and these programs are written in Perl version 5 without any specific Perl module. Here, we are going to explain how to install SSL certificate on Webmin server.<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/da-manager.com\/blog\/install-ssl-certificate-on-webmin-server\/#Follow_Process_to_Generate_a_CSR_for_Webmin_Server\" >Follow Process to Generate a CSR for Webmin Server:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/da-manager.com\/blog\/install-ssl-certificate-on-webmin-server\/#Install_SSL_Certificate_on_Webmin_Server\" >Install SSL Certificate on Webmin Server<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<header class=\"entry-header\">\n<h1 class=\"entry-title\"><span class=\"ez-toc-section\" id=\"Webmin_is_a_web-based_interface_for_system_administration_of_UNIX_Operating_system_that_includes_managing_user_accounts_disk_quotas_services_or_configuration_files_as_well_as_modify_or_controlling_open_source_apps_from_the_console_or_remotely_Webmin_includes_CGI_programs_and_a_simple_server_and_these_programs_are_written_in_Perl_version_5_without_any_specific_Perl_module_Here_we_are_going_to_explain_how_to_install_SSL_certificate_on_Webmin_server\"><\/span><strong style=\"font-size: 16px;\">Webmin<\/strong><span style=\"font-size: 16px;\"> is a web-based interface for system administration of UNIX Operating system that includes managing user accounts, disk quotas, services or configuration files as well as modify or controlling open source apps from the console or remotely. Webmin includes CGI programs and a simple server and these programs are written in Perl version 5 without any specific Perl module. Here, we are going to explain how to install SSL certificate on Webmin server.<\/span><span class=\"ez-toc-section-end\"><\/span><\/h1>\n<\/header>\n<div class=\"entry-content\">\n<p align=\"justify\">You need to create a Certificate Signing Request (CSR) to configure <a href=\"https:\/\/da-manager.com\/clients\/index.php?rp=\/store\/ssl-certificates\" target=\"_blank\" rel=\"noopener noreferrer\">CA-signed SSL certificate<\/a> for your Webmin server.<\/p>\n<p>Make sure you should have following software for the entire process:<\/p>\n<p>\u2013 Download and install the latest LTS version of Ubuntu 16.04.3 for a desktop.<br \/>\n\u2013 Webmin 1.840 with Apache web-server 2.4.18<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Follow_Process_to_Generate_a_CSR_for_Webmin_Server\"><\/span>Follow Process to Generate a CSR for Webmin Server:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>Step 1:<\/strong> First, you need to login into Webmin administration panel and open server\u2019s Terminal screen (Alt+K) as the seen picture below:<\/p>\n<\/div>\n<p><center><\/center><\/p>\n<div class=\"entry-content\">\n<p><strong>Step 2:<\/strong> At terminal prompt, type or paste the following <strong>OpenSSL command<\/strong> to generate CSR code. It will create private key as well CSR.<\/p>\n<pre>openssl req -new -newkey rsa:2048 -nodes -keyout \/etc\/ssl\/example_com.key -out \/etc\/ssl\/example_com.csr\/<\/pre>\n<p><strong>Note:<\/strong> In above command, you will have to change the name of private key and CSR with your domain name. And <strong>out \/etc\/ssl\/example_com.csr\/<\/strong> refers to path and file name to save CSR.<\/p>\n<p><strong>example_com.key<\/strong> is a private key, which should be saved on desktop\/server and do not disclose to anyone. After that, you will have to enter CSR details that are as mentioned below:<\/p>\n<ul>\n<li>C=<strong>US<\/strong> [two-letter abbreviation refers to country code]<\/li>\n<li>ST= It refers <strong>State<\/strong>, Type full state Name, for example: <strong>California<\/strong><\/li>\n<li>L= It refers <strong>locality<\/strong>, Type Full City name, for example: <strong>Los Angeles<\/strong><\/li>\n<li>O= It refers <strong>Organization<\/strong> name, Type your Full legal company or personal name. For example: <strong>Company LLC<\/strong><\/li>\n<li>OU= It refers <strong>Organizational Unit<\/strong>, Type the department\/division of your organization, for example: <strong>IT<\/strong><\/li>\n<li>CN= It refers <strong>Common Name<\/strong> or The Fully qualified domain name (FQDN) for your website. For e.g. <strong>example.com<\/strong> If you\u2019re <a href=\"https:\/\/www.cheapsslshop.com\/wildcard-ssl-certificates\" target=\"_blank\" rel=\"noopener\">requesting Wildcard Certificate<\/a>, add an asterisk (*) to the left of the common name. for example, <strong>*.example.com<\/strong><\/li>\n<\/ul>\n<p>After OpenSSL command is entered and executed, You have generated CSR code including \u2014\u2013BEGIN CERTIFICATE REQUEST\u2014\u2013 and \u2014\u2013END CERTIFICATE REQUEST\u2014\u2013 headers and paste it on the configuration page. Picture below shows CSR code:<\/p>\n<p><center><\/center><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Install_SSL_Certificate_on_Webmin_Server\"><\/span>Install SSL Certificate on Webmin Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Once you have completed the process of <strong>generating CSR for Webmin Server<\/strong>, Follow steps to install SSL on Webmin as mentioned below:<\/p>\n<p><strong>Step 1:<\/strong> Once you receive certificate files from Certificate Authority (CA) after domain and company validation, save those files on your local computer. Now, open main certificate file <strong>\u201cexample_com.crt\u201d<\/strong> including a private key and certificate bundle file <strong>\u201cexample_com.ca-bundle\u201d<\/strong> with a text editor and copy the code including the tags \u2014\u2013BEGIN CERTIFICATE\u2014\u2013 and \u2014\u2013END CERTIFICATE\u2014\u2013 of both files into a single file called WebminServer.pem that you can upload to a Webmin server.<\/p>\n<p><strong>Step 2:<\/strong> Replace WebminServer.pem file:<br \/>\nNow, locate WebminServer.pem file found at <strong>\/etc\/Webmin<\/strong> location and replace this file with newly created newWebminServ.pem file that includes a private key and main certificate file. You can replace a file with below code:<\/p>\n<pre>cat example_com.key example_com.crt &gt; newWebminServ.pem<\/pre>\n<p><strong>Note:<\/strong> Make sure to change the name of private key and certificate file name according to your domain.<\/p>\n<p>Screen layout of newWebminServ.pem file will be as:<\/p>\n<p>\u2014\u2013BEGIN RSA PRIVATE KEY\u2014\u2013<br \/>\n(Encrypted Contents of private key)<br \/>\n\u2014\u2013END RSA PRIVATE KEY\u2014\u2013<\/p>\n<p>\u2014\u2013BEGIN CERTIFICATE\u2014\u2013<br \/>\n(Encrypted Contents of SSL certificate: example_com.crt)<br \/>\n\u2014\u2013END CERTIFICATE\u2014\u2013<\/p>\n<p><strong>Note:<\/strong> You should have a backup copy of WebminServer.pem file before replacing it with your new .pem file.<\/p>\n<p><strong>Step 3:<\/strong> Configure WebminServer.conf file:<br \/>\nOpen <strong>WebminServer.conf<\/strong> file with notepad and enter the location of intermediate certificate<\/p>\n<pre>extracas=\/etc\/webmin\/intermediate_Certificate.crt<\/pre>\n<p>Step 4: Finally, you should restart Webmin server and open website URL in the browser.<\/p>\n<p>Your SSL certificate is now installed and you can use SSL checker tool to confirm certificate details.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Webmin is a web-based interface for system administration of UNIX Operating system that includes managing&#8230;<\/p>\n","protected":false},"author":1,"featured_media":5648,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","_mbp_gutenberg_autopost":false,"footnotes":""},"categories":[147],"tags":[276,222,132],"class_list":["post-5645","post","type-post","status-publish","format-standard","has-post-thumbnail","category-general","tag-security","tag-ssl","tag-website"],"modified_by":null,"_links":{"self":[{"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/posts\/5645","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/comments?post=5645"}],"version-history":[{"count":0,"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/posts\/5645\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/media\/5648"}],"wp:attachment":[{"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/media?parent=5645"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/categories?post=5645"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/tags?post=5645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}