{"id":3930,"date":"2021-01-30T08:40:56","date_gmt":"2021-01-30T08:40:56","guid":{"rendered":"https:\/\/infyblog.zluck.in\/?p=3930"},"modified":"2025-07-16T12:59:37","modified_gmt":"2025-07-16T12:59:37","slug":"how-to-enable-localhost-https-ssl-on-wamp-server","status":"publish","type":"post","link":"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/","title":{"rendered":"How to setup and enable https with SSL on wamp server virtual host"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"3930\" class=\"elementor elementor-3930\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-646fe76 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"646fe76\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-04e2405\" data-id=\"04e2405\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\n\t\t<div class=\"elementor-element elementor-element-f8a5c81 elementor-widget elementor-widget-text-editor\" data-id=\"f8a5c81\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Recently, I&#8217;ve started working on one project where we need to set up a virtual host with HTTPS because I need to run that project with <a href=\"https:\/\/expose.dev\/docs\/getting-started\/installation\">expose<\/a> and <a href=\"https:\/\/www.shopify.com\/in\">Shopify<\/a> in my local development machine. I&#8217;ve wamp 3.2.3 on my local machine.<\/p><p>I spent a lot of time setting it. so, I thought I should write one article and video for a step-by-step guide. So, I will show you in this article how to set up HTTPS for a local machine.<\/p><h5>You can watch the following video tutorial or follow the article.<\/h5>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-de8ed80 elementor-widget elementor-widget-video\" data-id=\"de8ed80\" data-element_type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/youtu.be\\\/D5IqDcHyXSQ&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-49a1b81 elementor-widget elementor-widget-text-editor\" data-id=\"49a1b81\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h2>Step 1 &#8211; Install Wamp<\/h2><p>Install wamp server if not installed in your local machine. you can download the latest version of the wamp server from <a href=\"https:\/\/www.wampserver.com\/en\/#download-wrapper\">here<\/a>. wamp server is available in 32 bit and 64 bit. make sure you select the correct version of the wamp server based on your operating system (window)&#8217;s version.<\/p><h2>Step 2 &#8211; Install OpenSSL<\/h2><p>OpenSSL is an open-source command-line tool that is used to generate the SSL certificate and private key. OpenSSL is available in both versions 32 and 64 bit. download the latest version of OpenSSL from <a href=\"https:\/\/slproweb.com\/products\/Win32OpenSSL.html\">here<\/a>.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-09c6eb4 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"09c6eb4\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d0d5394\" data-id=\"d0d5394\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5727148 elementor-widget elementor-widget-image\" data-id=\"5727148\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"800\" height=\"136\" src=\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/2021-01-29-601401f28a12b-1-1024x174.png\" class=\"attachment-large size-large wp-image-3999\" alt=\"Step 2 - Install OpenSSL\" srcset=\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/2021-01-29-601401f28a12b-1-1024x174.png 1024w, https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/2021-01-29-601401f28a12b-1-300x51.png 300w, https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/2021-01-29-601401f28a12b-1-768x130.png 768w, https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/2021-01-29-601401f28a12b-1-1536x261.png 1536w, https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/2021-01-29-601401f28a12b-1.png 1602w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bd773fd elementor-widget elementor-widget-text-editor\" data-id=\"bd773fd\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>I hope you successfully installed OpenSSL on your machine. let&#8217;s take the next step<\/p><h2>Step 3 &#8211; Create a Private key<\/h2><p>Open your terminal as an Administrator otherwise you will get a permission denied error. Also, you can provide permission to the OpenSSL directory and run the terminal in normal mode.<\/p><p>Now, let go to where we installed OpenSSL<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d1d8f66 elementor-widget elementor-widget-code-highlight\" data-id=\"d1d8f66\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>cd C:\\Program Files\\OpenSSL-Win64\\bin<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1b2c113 elementor-widget elementor-widget-text-editor\" data-id=\"1b2c113\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Let&#8217;s create a private key which is 2048 bits encryption. fire one by one the following two commands to create it.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3821ae1 elementor-widget elementor-widget-code-highlight\" data-id=\"3821ae1\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>openssl genrsa -aes256 -out private.key 2048\r\n\r\nopenssl rsa -in private.key -out private.key<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3a7ccc8 elementor-widget elementor-widget-image\" data-id=\"3a7ccc8\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"800\" height=\"336\" src=\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/2021-01-29-60140b3530e0b-1024x430.png\" class=\"attachment-large size-large wp-image-4006\" alt=\"Step 3 - Create a Private key\" srcset=\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/2021-01-29-60140b3530e0b-1024x430.png 1024w, https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/2021-01-29-60140b3530e0b-300x126.png 300w, https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/2021-01-29-60140b3530e0b-768x322.png 768w, https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/2021-01-29-60140b3530e0b.png 1070w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f434f66 elementor-widget elementor-widget-text-editor\" data-id=\"f434f66\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Your private.key is successfully generated here C:\\Program Files\\OpenSSL-Win64\\bin<\/p><h2>Step 4 &#8211; Create an SSL Certificate<\/h2><p>Let&#8217;s create a certificate using the following command,<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7744409 elementor-widget elementor-widget-code-highlight\" data-id=\"7744409\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>openssl req -new -x509 -nodes -sha1 -key private.key -out certificate.crt -days 36500<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b1f63f7 elementor-widget elementor-widget-text-editor\" data-id=\"b1f63f7\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>You need to enter a detail that looks like<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9d8d153 elementor-widget elementor-widget-image\" data-id=\"9d8d153\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"800\" height=\"309\" src=\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/2021-01-29-60140cd318bd9-1024x396.png\" class=\"attachment-large size-large wp-image-4013\" alt=\"You need to enter a detail that looks like\" srcset=\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/2021-01-29-60140cd318bd9-1024x396.png 1024w, https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/2021-01-29-60140cd318bd9-300x116.png 300w, https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/2021-01-29-60140cd318bd9-768x297.png 768w, https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/2021-01-29-60140cd318bd9.png 1210w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d5329e3 elementor-widget elementor-widget-text-editor\" data-id=\"d5329e3\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>You can verify here<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-df60301 elementor-widget elementor-widget-image\" data-id=\"df60301\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"775\" height=\"371\" src=\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/2021-01-29-60140d37b3a9f.png\" class=\"attachment-large size-large wp-image-4017\" alt=\"You can verify here\" srcset=\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/2021-01-29-60140d37b3a9f.png 775w, https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/2021-01-29-60140d37b3a9f-300x144.png 300w, https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/2021-01-29-60140d37b3a9f-768x368.png 768w\" sizes=\"(max-width: 775px) 100vw, 775px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-740b4c6 elementor-widget elementor-widget-text-editor\" data-id=\"740b4c6\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h2>Step 5 &#8211; Move both Private Key and a Certificate<\/h2><p>Open a directory D:\\wamp64\\bin\\apache\\apache2.4.46\\conf (Based on where your wamp is installed) and create a <span style=\"color: #e83e8c;\">key<\/span> directory.<\/p><p>Now, move both files to the <span style=\"color: #e83e8c;\">key<\/span> directory.<\/p><h2>Step 6 &#8211; Configure Your httpd.conf File<\/h2><p>Open your <span style=\"color: #e83e8c;\">D:\\wamp64\\bin\\apache\\apache2.4.46\\conf\\httpd.conf<\/span> (the drive should be where your wamp is installed) and un-comment the following 3 lines one by one.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-00aecc3 elementor-widget elementor-widget-code-highlight\" data-id=\"00aecc3\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>LoadModule ssl_module modules\/mod_ssl.so\r\nInclude conf\/extra\/httpd-ssl.conf\r\nLoadModule socache_shmcb_module modules\/mod_socache_shmcb.so<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-17c7e2e elementor-widget elementor-widget-text-editor\" data-id=\"17c7e2e\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h2>Step 7 Configure Your httpd-ssl.conf File<\/h2><p><span style=\"color: #e83e8c;\"><span style=\"color: #000000;\">Open your<\/span> D:\\wamp64\\bin\\apache\\apache2.4.46\\conf\\extra\\httpd-ssl.conf<\/span> (the drive should be where your wamp is installed) and change the following lines.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a0fc971 elementor-widget elementor-widget-code-highlight\" data-id=\"a0fc971\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>DocumentRoot \"${INSTALL_DIR}\/www\"\r\nServerName localhost:443\r\nServerAdmin admin@example.com\r\nSSLCertificateKeyFile \"${SRVROOT}\/conf\/key\/private.key\"\r\nSSLCertificateFile \"${SRVROOT}\/conf\/key\/certificate.crt\"<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cc288ad elementor-widget elementor-widget-text-editor\" data-id=\"cc288ad\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Make sure, these following all lines are set or not. if not, add it as well.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-64789e7 elementor-widget elementor-widget-code-highlight\" data-id=\"64789e7\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>SSLSessionCache \"shmcb:${SRVROOT}\/logs\/ssl_scache(512000)\"\r\nCustomLog \"${SRVROOT}\/logs\/ssl_request.log\" \\\r\n          \"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \\\"%r\\\" %b\"<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-91ca4b5 elementor-widget elementor-widget-text-editor\" data-id=\"91ca4b5\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h2>Step 8 Configure a Virtual Host<\/h2><p>Hope you have created a virtual host. if not, create a virtual host using the virtual host manager which is provided by wamp.<\/p><p>Open an <span style=\"color: #e83e8c;\">D:\\wamp64\\bin\\apache\\apache2.4.46\\conf\\extra\\httpd-vhosts.conf<\/span> and update your virtual host<\/p><p>Change the port :80 to :443<\/p><p>add the following lines into the VirtualHost.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-49c29c7 elementor-widget elementor-widget-code-highlight\" data-id=\"49c29c7\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript \">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>SSLEngine on\r\nSSLCertificateFile \"${SRVROOT}\/conf\/key\/certificate.crt\"\r\nSSLCertificateKeyFile \"${SRVROOT}\/conf\/key\/private.key\"<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4d11d71 elementor-widget elementor-widget-text-editor\" data-id=\"4d11d71\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Now, the code of Virtual Host looks like,<\/p><p>Now, we are done. Let&#8217;s restart a wamp server.<\/p><p>If you see a green WAMP icon everything should be right. If the icon is orange there is a problem with your syntax somewhere.<\/p><p>Open terminal and go to the <span style=\"color: #e83e8c;\">D:\\wamp64\\bin\\apache\\apache2.4.46\\bin<\/span> and run <span style=\"color: #e83e8c;\">httpd -t<\/span> in the command prompt and if there are any syntax errors they will be listed.<\/p><p>if fine then open <span style=\"color: #e83e8c;\">https:\/\/ladumor.test<\/span> on the browser<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>Recently, I&#8217;ve started working on one project where we need to set up a virtual host with HTTPS because I need to&#8230;<\/p>\n","protected":false},"author":2,"featured_media":3932,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"postBodyCss":"","postBodyMargin":[],"postBodyPadding":[],"postBodyBackground":{"backgroundType":"classic","gradient":""},"two_page_speed":[],"footnotes":""},"categories":[127],"tags":[14],"class_list":["post-3930","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","tag-tips"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to setup and enable https with SSL on wamp server virtual host<\/title>\n<meta name=\"description\" content=\"Learn how to enable HTTPS\/SSL on your WAMP localhost with a step-by-step guide for creating keys, certificates, and virtual hosts.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-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 setup and enable https with SSL on wamp server virtual host\" \/>\n<meta property=\"og:description\" content=\"Learn how to enable HTTPS\/SSL on your WAMP localhost with a step-by-step guide for creating keys, certificates, and virtual hosts.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog | InfyOm Technologies\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/infyom\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-30T08:40:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-16T12:59:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-enable-localhost-https-ssl-on-wamp-server.png\" \/>\n\t<meta property=\"og:image:width\" content=\"772\" \/>\n\t<meta property=\"og:image:height\" content=\"484\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"InfyOm\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InfyOm\" \/>\n<meta name=\"twitter:site\" content=\"@InfyOm\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InfyOm\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/\"},\"author\":{\"name\":\"InfyOm\",\"@id\":\"https:\/\/infyom.com\/blog\/#\/schema\/person\/659bfc844c333d041221e83c5f5ec754\"},\"headline\":\"How to setup and enable https with SSL on wamp server virtual host\",\"datePublished\":\"2021-01-30T08:40:56+00:00\",\"dateModified\":\"2025-07-16T12:59:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/\"},\"wordCount\":561,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/infyom.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-enable-localhost-https-ssl-on-wamp-server.png\",\"keywords\":[\"Tips\"],\"articleSection\":[\"PHP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/\",\"url\":\"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/\",\"name\":\"How to setup and enable https with SSL on wamp server virtual host\",\"isPartOf\":{\"@id\":\"https:\/\/infyom.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-enable-localhost-https-ssl-on-wamp-server.png\",\"datePublished\":\"2021-01-30T08:40:56+00:00\",\"dateModified\":\"2025-07-16T12:59:37+00:00\",\"description\":\"Learn how to enable HTTPS\/SSL on your WAMP localhost with a step-by-step guide for creating keys, certificates, and virtual hosts.\",\"breadcrumb\":{\"@id\":\"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/#primaryimage\",\"url\":\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-enable-localhost-https-ssl-on-wamp-server.png\",\"contentUrl\":\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-enable-localhost-https-ssl-on-wamp-server.png\",\"width\":772,\"height\":484,\"caption\":\"How to setup and enable https with SSL on wamp server virtual host\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/infyom.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to setup and enable https with SSL on wamp server virtual host\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/infyom.com\/blog\/#website\",\"url\":\"https:\/\/infyom.com\/blog\/\",\"name\":\"Blog | InfyOm Technologies\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/infyom.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/infyom.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/infyom.com\/blog\/#organization\",\"name\":\"InfyOm Technologies\",\"url\":\"https:\/\/infyom.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/infyom.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/06\/InfyOm-Logo.png\",\"contentUrl\":\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/06\/InfyOm-Logo.png\",\"width\":88,\"height\":41,\"caption\":\"InfyOm Technologies\"},\"image\":{\"@id\":\"https:\/\/infyom.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/infyom\",\"https:\/\/x.com\/InfyOm\",\"https:\/\/www.instagram.com\/infyomtechnologies\/\",\"https:\/\/in.linkedin.com\/company\/infyom-technologies\",\"https:\/\/github.com\/infyomlabs\",\"https:\/\/x.com\/infyom\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/infyom.com\/blog\/#\/schema\/person\/659bfc844c333d041221e83c5f5ec754\",\"name\":\"InfyOm\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/infyom.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1ad162864d8d33c04ea9e6d0333cc483?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1ad162864d8d33c04ea9e6d0333cc483?s=96&d=mm&r=g\",\"caption\":\"InfyOm\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to setup and enable https with SSL on wamp server virtual host","description":"Learn how to enable HTTPS\/SSL on your WAMP localhost with a step-by-step guide for creating keys, certificates, and virtual hosts.","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:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/","og_locale":"en_US","og_type":"article","og_title":"How to setup and enable https with SSL on wamp server virtual host","og_description":"Learn how to enable HTTPS\/SSL on your WAMP localhost with a step-by-step guide for creating keys, certificates, and virtual hosts.","og_url":"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/","og_site_name":"Blog | InfyOm Technologies","article_publisher":"https:\/\/www.facebook.com\/infyom","article_published_time":"2021-01-30T08:40:56+00:00","article_modified_time":"2025-07-16T12:59:37+00:00","og_image":[{"width":772,"height":484,"url":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-enable-localhost-https-ssl-on-wamp-server.png","type":"image\/png"}],"author":"InfyOm","twitter_card":"summary_large_image","twitter_creator":"@InfyOm","twitter_site":"@InfyOm","twitter_misc":{"Written by":"InfyOm","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/#article","isPartOf":{"@id":"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/"},"author":{"name":"InfyOm","@id":"https:\/\/infyom.com\/blog\/#\/schema\/person\/659bfc844c333d041221e83c5f5ec754"},"headline":"How to setup and enable https with SSL on wamp server virtual host","datePublished":"2021-01-30T08:40:56+00:00","dateModified":"2025-07-16T12:59:37+00:00","mainEntityOfPage":{"@id":"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/"},"wordCount":561,"commentCount":0,"publisher":{"@id":"https:\/\/infyom.com\/blog\/#organization"},"image":{"@id":"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/#primaryimage"},"thumbnailUrl":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-enable-localhost-https-ssl-on-wamp-server.png","keywords":["Tips"],"articleSection":["PHP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/","url":"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/","name":"How to setup and enable https with SSL on wamp server virtual host","isPartOf":{"@id":"https:\/\/infyom.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/#primaryimage"},"image":{"@id":"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/#primaryimage"},"thumbnailUrl":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-enable-localhost-https-ssl-on-wamp-server.png","datePublished":"2021-01-30T08:40:56+00:00","dateModified":"2025-07-16T12:59:37+00:00","description":"Learn how to enable HTTPS\/SSL on your WAMP localhost with a step-by-step guide for creating keys, certificates, and virtual hosts.","breadcrumb":{"@id":"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/#primaryimage","url":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-enable-localhost-https-ssl-on-wamp-server.png","contentUrl":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-enable-localhost-https-ssl-on-wamp-server.png","width":772,"height":484,"caption":"How to setup and enable https with SSL on wamp server virtual host"},{"@type":"BreadcrumbList","@id":"https:\/\/infyom.com\/blog\/how-to-enable-localhost-https-ssl-on-wamp-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/infyom.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to setup and enable https with SSL on wamp server virtual host"}]},{"@type":"WebSite","@id":"https:\/\/infyom.com\/blog\/#website","url":"https:\/\/infyom.com\/blog\/","name":"Blog | InfyOm Technologies","description":"","publisher":{"@id":"https:\/\/infyom.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/infyom.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/infyom.com\/blog\/#organization","name":"InfyOm Technologies","url":"https:\/\/infyom.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/infyom.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/06\/InfyOm-Logo.png","contentUrl":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/06\/InfyOm-Logo.png","width":88,"height":41,"caption":"InfyOm Technologies"},"image":{"@id":"https:\/\/infyom.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/infyom","https:\/\/x.com\/InfyOm","https:\/\/www.instagram.com\/infyomtechnologies\/","https:\/\/in.linkedin.com\/company\/infyom-technologies","https:\/\/github.com\/infyomlabs","https:\/\/x.com\/infyom"]},{"@type":"Person","@id":"https:\/\/infyom.com\/blog\/#\/schema\/person\/659bfc844c333d041221e83c5f5ec754","name":"InfyOm","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/infyom.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1ad162864d8d33c04ea9e6d0333cc483?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ad162864d8d33c04ea9e6d0333cc483?s=96&d=mm&r=g","caption":"InfyOm"}}]}},"_links":{"self":[{"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/posts\/3930","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/comments?post=3930"}],"version-history":[{"count":62,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/posts\/3930\/revisions"}],"predecessor-version":[{"id":8062,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/posts\/3930\/revisions\/8062"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/media\/3932"}],"wp:attachment":[{"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/media?parent=3930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/categories?post=3930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/tags?post=3930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}