{"id":521,"date":"2020-12-05T12:20:18","date_gmt":"2020-12-05T12:20:18","guid":{"rendered":"https:\/\/www.velaninfo.com\/rs\/?post_type=techtips&#038;p=521"},"modified":"2021-10-05T05:34:07","modified_gmt":"2021-10-05T05:34:07","slug":"how-to-enable-ssl-on-a-wamp-server","status":"publish","type":"techtips","link":"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-enable-ssl-on-a-wamp-server\/","title":{"rendered":"How to enable SSL on a WAMP Server?"},"content":{"rendered":"<p>Websites in development environment that uses a WAMP server sometimes requires https to be available for further development of the application\/websites. To enable https on the development server, we need to enable SSL manually.<\/p>\n<p>The following steps are to enable SSL on a WAMP server \u2013<\/p>\n<p><strong>Step 1: Download and Install OpenSSL on the server. <\/strong><\/p>\n<p>OpenSSL is available in both 32 and 64 bit versions. You can download the OpenSSL software for windows from the link <a href=\"http:\/\/gnuwin32.sourceforge.net\/packages\/openssl.htm\">http:\/\/gnuwin32.sourceforge.net\/packages\/openssl.htm<\/a><\/p>\n<p>Make sure you leave the installation to the default settings.<\/p>\n<p><strong>Step 2: Creation of SSL Private Key and Certificate<\/strong><\/p>\n<p>Once the software is installed, the next step is to create the private key and certificate.<\/p>\n<ol>\n<li>Open the Start Menu -&gt; Right click on command prompt -&gt; \u201cRun as Administrator\u201d<\/li>\n<li>Change the directory to the location where OpenSSL<\/li>\n<\/ol>\n<p>cd C:\\Program Files\\openssl-win64\/bin<\/p>\n<ol>\n<li>Creation of private key and setting up passphrase<\/li>\n<\/ol>\n<p>opensslgenrsa -aes256 -out private.key 2048 #generating private key<\/p>\n<p>opensslrsa -in private.key -out private.key #removing the pass phrase<\/p>\n<ol>\n<li>The next step is to create the certificate which involves answering a some questions. The common name should set as \u201clocalhost\u201d<\/li>\n<\/ol>\n<p>opensslreq -new -x509 -nodes -sha1 -key private.key -out certificate.crt -days 36500 #creating the certificate<\/p>\n<p><strong>Step 3: Copy the created SSL Key and certificate<\/strong><\/p>\n<p>The next step is to create a folder called \u201ckey\u201d in the location C:\\wamp64\\bin\\apache2.4.41\\conf\\. Copy C:\\Program Files\\openssl-win64\\bin\\certificate.crt and private.key to the newly created folder called key (C:\\wamp64\\bin\\apache2.4.41\\conf\\key).<\/p>\n<p><strong>Step 4: Edit the httpd.conf file<\/strong><\/p>\n<p>The next step after copying of the files is to edit the httpd.confffile. Open the file C:\\wamp64\\bin\\apache\\apache2.4.41\\conf\\httpd.conf and un-comment (remove #) from the following 3 lines \u2013<\/p>\n<p>LoadModulessl_module modules\/mod_ssl.so<\/p>\n<p>Include conf\/extra\/httpd-ssl.conf<\/p>\n<p>LoadModulesocache_shmcb_module modules\/mod_socache_shmcb.so<\/p>\n<p>The next step is to confirm that the following line is un-commented in the \u201cphp.ini\u201d file located in \u201cC:\\wamp64\\bin\\php\\php7.0.10\\php.ini\u201d<\/p>\n<p>extension=php_openssl.dll<\/p>\n<p><strong>Step 5: Edit the httpd-ssl.conf file<\/strong><\/p>\n<p>The next step is to edit the httpd-ssl.conf file located in C:\\wamp64\\bin\\apache\\apache2.4.71\\conf\\extra\\httpd-ssl.conf. The existing parameters should be changed to the following<\/p>\n<p>VirtualHost *:443&gt;<\/p>\n<p>DocumentRoot &#8220;c:\/wamp64\/www&#8221;<\/p>\n<p>ServerName localhost:443<\/p>\n<p>ServerAdmin admin@example.com<\/p>\n<p>ErrorLog &#8220;${SRVROOT}\/logs\/error.log&#8221;<\/p>\n<p>TransferLog &#8220;${SRVROOT}\/logs\/access.log&#8221;<\/p>\n<p>SSLCertificateFile &#8220;${SRVROOT}\/conf\/key\/certificate.crt&#8221;<\/p>\n<p>SSLCertificateKeyFile &#8220;${SRVROOT}\/conf\/key\/private.key&#8221;<\/p>\n<p>CustomLog &#8220;${SRVROOT}\/logs\/ssl_request.log&#8221;<\/p>\n<p>&lt;\/VirtualHost&gt;<\/p>\n<p>The DocumentRoot folder is the location where the website files are located. The ServerName can be set as \u201clocalhost\u201d or the name set to access the website like \u201cexample.com\u201d<\/p>\n<p><strong>Step 6: Restart the WAMP Server<\/strong><\/p>\n<p>The final setep in enabling <a href=\"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-configure-vsftpd-with-ssl\/\"><strong>SSL in WAMP server<\/strong><\/a> is to restart the WAMP server for the changes to take effect. A green WAMP icon indicates that everything is good. If the icon is orange, it means that there is problem with the syntax in the configuration.<\/p>\n<p>Running the C:\\wamp64\\bin\\apache\\apache2.4.41\\bin\\httd-t in the command prompt will list the syntax errors if any.<\/p>\n<p><strong>Note<\/strong>: As the certificate we have created is a self-signed certificate, you will receive a security warning.<\/p>\n<p>At <a href=\"https:\/\/www.velaninfo.com\"><strong>Velan<\/strong><\/a>, our server support engineers can help you setup SSL on your WAMP server. For details, please visit https:\/\/www.velaninfo.com\/mservices\/managed-it-services<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Websites in development environment that uses a WAMP server sometimes requires https to be available for further development of the application\/websites. To enable https on the development server, we need to enable SSL manually. The following steps are to enable SSL on a WAMP server \u2013 Step 1: Download and Install OpenSSL on the server&#8230;.<a class=\"continue-reading text-uppercase\" href=\"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-enable-ssl-on-a-wamp-server\/\"> Continue Reading <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.velaninfo.com\/rs\/wp-content\/themes\/velaninfo\/images\/reading_arw.png\" alt=\"Continue Reading\" width=\"16\" height=\"12\"\/><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"tags":[],"class_list":["post-521","techtips","type-techtips","status-publish","hentry","Categories_tech_tip-security-server-windows","Categories_tech_tip-server-windows","Categories_tech_tip-windows"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v19.5 (Yoast SEO v27.1.1) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>WAMP Server | How to enable SSL on a WAMP Server - Velan<\/title>\n<meta name=\"description\" content=\"Websites in development environment that uses a WAMP server sometimes requires https to be available for further development of the application\/websites.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-enable-ssl-on-a-wamp-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to enable SSL on a WAMP Server?\" \/>\n<meta property=\"og:description\" content=\"Websites in development environment that uses a WAMP server sometimes requires https to be available for further development of the application\/websites.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-enable-ssl-on-a-wamp-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Velan\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-05T05:34:07+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-enable-ssl-on-a-wamp-server\/\",\"url\":\"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-enable-ssl-on-a-wamp-server\/\",\"name\":\"WAMP Server | How to enable SSL on a WAMP Server - Velan\",\"isPartOf\":{\"@id\":\"https:\/\/www.velaninfo.com\/rs\/#website\"},\"datePublished\":\"2020-12-05T12:20:18+00:00\",\"dateModified\":\"2021-10-05T05:34:07+00:00\",\"description\":\"Websites in development environment that uses a WAMP server sometimes requires https to be available for further development of the application\/websites.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-enable-ssl-on-a-wamp-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-enable-ssl-on-a-wamp-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-enable-ssl-on-a-wamp-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.velaninfo.com\/rs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tech Tips\",\"item\":\"https:\/\/www.velaninfo.com\/rs\/techtips\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to enable SSL on a WAMP Server?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.velaninfo.com\/rs\/#website\",\"url\":\"https:\/\/www.velaninfo.com\/rs\/\",\"name\":\"Velan\",\"description\":\"Velaninfo Services India Pvt Ltd\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.velaninfo.com\/rs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"WAMP Server | How to enable SSL on a WAMP Server - Velan","description":"Websites in development environment that uses a WAMP server sometimes requires https to be available for further development of the application\/websites.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-enable-ssl-on-a-wamp-server\/","og_locale":"en_US","og_type":"article","og_title":"How to enable SSL on a WAMP Server?","og_description":"Websites in development environment that uses a WAMP server sometimes requires https to be available for further development of the application\/websites.","og_url":"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-enable-ssl-on-a-wamp-server\/","og_site_name":"Velan","article_modified_time":"2021-10-05T05:34:07+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-enable-ssl-on-a-wamp-server\/","url":"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-enable-ssl-on-a-wamp-server\/","name":"WAMP Server | How to enable SSL on a WAMP Server - Velan","isPartOf":{"@id":"https:\/\/www.velaninfo.com\/rs\/#website"},"datePublished":"2020-12-05T12:20:18+00:00","dateModified":"2021-10-05T05:34:07+00:00","description":"Websites in development environment that uses a WAMP server sometimes requires https to be available for further development of the application\/websites.","breadcrumb":{"@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-enable-ssl-on-a-wamp-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-enable-ssl-on-a-wamp-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.velaninfo.com\/rs\/techtips\/how-to-enable-ssl-on-a-wamp-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.velaninfo.com\/rs\/"},{"@type":"ListItem","position":2,"name":"Tech Tips","item":"https:\/\/www.velaninfo.com\/rs\/techtips\/"},{"@type":"ListItem","position":3,"name":"How to enable SSL on a WAMP Server?"}]},{"@type":"WebSite","@id":"https:\/\/www.velaninfo.com\/rs\/#website","url":"https:\/\/www.velaninfo.com\/rs\/","name":"Velan","description":"Velaninfo Services India Pvt Ltd","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.velaninfo.com\/rs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips"}],"about":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/types\/techtips"}],"author":[{"embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/comments?post=521"}],"version-history":[{"count":5,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/521\/revisions"}],"predecessor-version":[{"id":1478,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/techtips\/521\/revisions\/1478"}],"wp:attachment":[{"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/media?parent=521"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.velaninfo.com\/rs\/wp-json\/wp\/v2\/tags?post=521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}