{"id":2727,"date":"2022-11-04T18:09:00","date_gmt":"2022-11-04T18:09:00","guid":{"rendered":"https:\/\/puvox.software\/blog\/?p=2727"},"modified":"2022-11-26T20:27:24","modified_gmt":"2022-11-26T20:27:24","slug":"install-ssl-https-on-wamp-server","status":"publish","type":"post","link":"https:\/\/puvox.software\/blog\/install-ssl-https-on-wamp-server\/","title":{"rendered":"WAMP &#8211; Install SSL\/HTTPS (2023+)"},"content":{"rendered":"<div class=\"default-content-clss content_2727 type_post \"><p>Here we wrote\u00a0<strong>ALL NECESSARY STEPS,<\/strong> to explain\u00a0<strong>how to install SSL &amp; use <code>HTTPS<\/code> on <span style=\"color: #808080;\"><a style=\"color: #808080;\" href=\"http:\/\/www.wampserver.com\/\">WampServer<\/a><\/span>\u00a0\u00a0<\/strong>(just change<span style=\"color: #ff0000;\"><strong>\u00a0red words<\/strong><\/span>\u00a0to your actual path) :<\/p>\n<ol>\n<li>Click in tray<span style=\"color: #339966;\"> <strong><span style=\"color: #000000;\">WAMP &gt; Apache &gt; Apache Modules<\/span>\u00a0<\/strong><\/span>and check <strong>socache_shmcb_module <\/strong>(wait for restart and do the same for <strong>ssl_module <\/strong>).<\/li>\n<li>Open <code>CMD<\/code>\u00a0and execute these commands one-by-one (<em>if asked, type i.e. <strong>abcd<\/strong> for password-phrase<\/em>).\n<pre><strong>cd <span style=\"color: #ff0000;\">c:\\wamp\\bin\\apache\\apacheX.X.XX<\/span>\\bin<\/strong><\/pre>\n<pre><strong>(echo [ my_req_ext ] &amp;&amp; echo subjectAltName = DNS:localhost, DNS:*.localhost, IP:127.0.0.1) &gt;&gt; ..\\conf\\openssl.cnf<\/strong><\/pre>\n<pre><strong>openssl genrsa -aes256 -passout pass:ABCDE -out mypriv.key 2048 &amp;&amp; <\/strong><strong>openssl rsa -in mypriv.key -passin pass:ABCDE -out mypriv.key \n\n<\/strong><strong>openssl req -new -x509 -nodes -sha1 -key mypriv.key -out mycert.crt -days 44444 -config ..\\conf\\openssl.cnf -extensions my_req_ext -subj \"\/C=US\/ST=Distributed\/L=Cloud\/O=Cluster\/CN=localhost\"<\/strong>\n\n<strong>copy mypriv.key ..\\conf\\mypriv.key \/y &amp;&amp; copy mycert.crt ..\\conf\\mycert.crt \/y<\/strong><\/pre>\n<\/li>\n<li>(Don&#8217;t close\u00a0<strong>CMD<\/strong>). Now in Windows, go to folder:\u00a0<strong><span style=\"color: #ff0000;\">c:\\wamp\\bin\\apache\\apacheX.X.XX<\/span>\\<span style=\"color: #008000;\">conf<\/span><\/strong>, open\u00a0<span style=\"color: #008000;\"><strong>httpd.conf<\/strong><\/span>\u00a0and :<br \/>\n<span style=\"color: #993300;\">\u00a0A)<\/span> Below line\u00a0<code>Define APACHE_DIR\u00a0<\/code>if there is not already <code>Define SRVROOT<\/code>, then add this:<br \/>\n<strong><code>Define SRVROOT ${APACHE_DIR}\/<\/code><\/strong><br \/>\n<span style=\"color: #993300;\">\u00a0B)<\/span> find &amp; uncomment this line:<br \/>\n<strong><code>Include conf\/extra\/httpd-ssl.conf<\/code><\/strong><\/li>\n<li>In <span style=\"color: #008000;\"><strong>conf\\extra\\httpd-ssl.conf<\/strong><\/span> file find<br \/>\n<strong>&lt;VirtualHost _default_:443&gt;<\/strong>, and below it re-set :<\/p>\n<pre class=\"lang-php prettyprint prettyprinted\">DocumentRoot \"${INSTALL_DIR}\/www\"\nServerName localhost:443\n...\n...\nSSLCertificateFile \"${SRVROOT}\/conf\/mycert.crt\"\n...\nSSLCertificateKeyFile \"${SRVROOT}\/conf\/mypriv.key\"<\/pre>\n<\/li>\n<li>Save file (in that opened <strong><code>cmd<\/code> <\/strong>type<strong><code>httpd -t<\/code><\/strong> to ensure the status is <code>ok<\/code>), then\u00a0Restart <strong>WAMP-server<\/strong> and access <code>https:\/\/127.0.0.1<\/code>\u00a0(or <code>https:\/\/localhost<\/code>)<\/li>\n<li>You will get warning but click <strong><code>Advanced &gt;Proceed<\/code> That&#8217;s all!<br \/>\n<\/strong><strong><br \/>\n(<\/strong>You can also disable a warning for our &#8220;self-signed&#8221; certificate. In browser, go to address <code><strong>chrome:\/\/flags\/#allow-insecure-localhost<\/strong><\/code> and set that to <strong><code>enabled<\/code><\/strong>, and restart Browser).https:\/\/127.0.0.1\/<\/li>\n<\/ol>\n<\/div>","protected":false},"excerpt":{"rendered":"<div class=\"default-content-clss excerpt_2727 type_post \"><p>Here we wrote\u00a0ALL NECESSARY STEPS, to explain\u00a0how to install SSL &amp; use HTTPS on WampServer\u00a0\u00a0(just change\u00a0red words\u00a0to your actual path) : Click in tray WAMP &gt; Apache &gt; Apache Modules\u00a0and<a class=\"excerpt-read-more\" href=\"https:\/\/puvox.software\/blog\/install-ssl-https-on-wamp-server\/\">(Continue Reading)<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":2730,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[10,17,13,11],"tags":[],"class_list":["post-2727","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-browser","category-coding","category-website","category-windows-software"],"_links":{"self":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/2727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/comments?post=2727"}],"version-history":[{"count":0,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/2727\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/media\/2730"}],"wp:attachment":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/media?parent=2727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/categories?post=2727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/tags?post=2727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}