{"id":122,"date":"2021-02-17T01:10:08","date_gmt":"2021-02-17T01:10:08","guid":{"rendered":"https:\/\/www.webmasterninjas.com\/developer\/?p=122"},"modified":"2021-02-17T01:27:35","modified_gmt":"2021-02-17T01:27:35","slug":"installing-a-self-signed-cert-on-your-local-machine","status":"publish","type":"post","link":"https:\/\/www.webmasterninjas.com\/developer\/installing-a-self-signed-cert-on-your-local-machine","title":{"rendered":"Installing a Self Signed Cert on your Local Machine"},"content":{"rendered":"\n<p>As browser security increases in 2021 it&#8217;s gotten a lot harder to install a self-signed cert on your local dev server and get a nice pretty dark gray lock (I kinda miss the green).  It&#8217;s very important, especially if you are working with web workers and  javascript.  Web browsers are continually tightening down the security and you <a rel=\"noreferrer noopener\" href=\"https:\/\/www.zdnet.com\/article\/browsers-to-block-access-to-https-sites-using-tls-1-0-and-1-1-starting-this-month\/\" data-type=\"URL\" data-id=\"https:\/\/www.zdnet.com\/article\/browsers-to-block-access-to-https-sites-using-tls-1-0-and-1-1-starting-this-month\/\" target=\"_blank\">no longer even accept TLS 1.0 and 1.1 anymore<\/a>, so keep those certs and virtual host configuration and web server SSL settings up to date!    This is something you have to do every time you work on a new domain and you won&#8217;t have a cool tool like Letsencrypt and Certbot to use because they do a round trip on the server which it means it has to be publically exposed and available online which is something you should never do with your local development server.  Since it took all day to figure it out I thought I&#8217;d write an article on it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a class=\"\" href=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/privacy-error-not-secure-self-signed-cert.jpg\" rel=\"lightbox-single-image\" data-rel=\"lightbox-single-image-image-0\" data-rl_title=\"privacy-error-not-secure-self-signed-cert\" data-rl_caption=\"Local Error for Self Signed Cert\" title=\"privacy-error-not-secure-self-signed-cert\"><img loading=\"lazy\" width=\"1024\" height=\"563\" src=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/privacy-error-not-secure-self-signed-cert-1024x563.jpg\" alt=\"Privacy Error, Not Secure local Dev website\" class=\"wp-image-127\" srcset=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/privacy-error-not-secure-self-signed-cert-1024x563.jpg 1024w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/privacy-error-not-secure-self-signed-cert-300x165.jpg 300w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/privacy-error-not-secure-self-signed-cert-768x422.jpg 768w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/privacy-error-not-secure-self-signed-cert-1536x844.jpg 1536w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/privacy-error-not-secure-self-signed-cert-500x275.jpg 500w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/privacy-error-not-secure-self-signed-cert.jpg 1628w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Local Error for Self Signed Cert<\/figcaption><\/figure>\n\n\n\n<p>The process is pretty straightforward. <\/p>\n\n\n\n<ol><li>Generate a key and certificate with Openssl.<\/li><li>Specify the key and certificate in your Web Servers configuration file<\/li><li>Restart web server<\/li><li>Export certificate from browser<\/li><li>Import that certificate into the browser<\/li><li>Restart the browser<\/li><\/ol>\n\n\n\n<p>I set this up on my Windows machine with Git Bash and Openssl running Apache Web Server and using Chrome as my browser, but the steps are the same if you are using a Linux machine, and the web configuration will change if you are using a different web server or depending on where you put your website or generated your cert\/key.  The web server will always have a way to specify a key and certificate for https.<\/p>\n\n\n\n<p>One of the major changes I had to do that I didn&#8217;t have to do before was use a configuration file for openssl.  You can find it here at <a rel=\"noreferrer noopener\" href=\"https:\/\/www.webmasterninjas.com\/downloads\/minimal.cnf\" target=\"_blank\">minimal.cnf<\/a> and it looks like this:<\/p>\n\n\n\n<div class=\"wp-container-3 wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<div class=\"wp-container-2 wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<div class=\"wp-container-1 wp-block-group has-cyan-bluish-gray-background-color has-background\"><div class=\"wp-block-group__inner-container\">\n<p>prompt = no<br>distinguished_name = req_dn<br>x509_extensions = x509_ext<\/p>\n\n\n\n<p>[ req_dn ]<\/p>\n\n\n\n<p>commonName = www.websitedomain.local<\/p>\n\n\n\n<p>[ x509_ext ]<\/p>\n\n\n\n<p>subjectAltName = @alt_names<\/p>\n\n\n\n<p>[alt_names]<br>DNS.1 = www.websitedomain.local<br>DNS.2 = websitedomain.local<\/p>\n<\/div><\/div>\n<\/div><\/div>\n<\/div><\/div>\n\n\n\n<p>minimal.cnf file (change commonName and DNS.1 and DNS.2 to your local domain names&#8230;I believe you can also specify an ip as IP.1 if you want under alt_names)<\/p>\n\n\n\n<p>The openssl command is as follows&#8230;.once again, change the names to something appropriate for your website&#8230;these are the files that are referenced in your virtual host file. I set it to be good for less then 3 years because I believe there is some sort of max for security reasons, at least in Chrome.<\/p>\n\n\n\n<div class=\"wp-container-4 wp-block-group has-vivid-cyan-blue-color has-text-color\"><div class=\"wp-block-group__inner-container\">\n<p><strong>openssl req -newkey rsa:4096 -x509 -sha256 -days 1000 -nodes -out www.websitedomain.local.crt -keyout www.websitedomain.local.key -config minimal.cnf<\/strong><\/p>\n<\/div><\/div>\n\n\n\n<p>My Apache configuration file for this virtual host in httpd-vhosts.conf looks like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted code\"><strong>&lt;VirtualHost *:443>\n    ServerAdmin webmaster@www.websitedomain.local\n    DocumentRoot \"C:\/websites\/www.websitedomain.local\/public_html\"\n    ServerName www.websitedomain.local\n    ServerAlias websitedomain.local\n    ErrorLog \"logs\/www.websitedomain.local-error.log\"\n    CustomLog \"logs\/www.websitedomain.local-access.log\" common\n    DirectoryIndex index.php index.html index.htm\n    SSLEngine on\n<span class=\"has-inline-color has-vivid-red-color\">    SSLCertificateFile \"C:\/websites\/www.websitedomain.local\/ssl\/www.websitedomain.local.crt\"\n    SSLCertificateKeyFile \"C:\/websites\/www.websitedomain.local\/ssl\/www.websitedomain.local.key\"<\/span>\n    &lt;Directory \"C:\/websites\/www.websitedomain.local\/public_html\">\n        AllowOverride All\n        Options  Indexes FollowSymLinks Includes ExecCGI\n        Require all granted\n    &lt;\/Directory>\n&lt;\/VirtualHost><\/strong><\/pre>\n\n\n\n<p>Don&#8217;t forget to make sure your hosts file has an entry for your local website domain.<\/p>\n\n\n\n<p><strong>127.0.0.1 www.webmastedomain.local <\/strong><\/p>\n\n\n\n<p>[Of course change &#8220;websitedomain&#8221; to the domain you want to setup and access the website through&#8230;it&#8217;s arbitrary, but needs to be consistent&#8230;make sure it&#8217;s the same in the configuration file minimal.cnf, hosts file, virtual hosts file and in the url you are trying to access the website through.]<\/p>\n\n\n\n<p>Now comes the tedious part where you export the certificate through the browser and then import the slightly modified certificate as a Trusted root certificate.<\/p>\n\n\n\n<figure class=\"wp-block-gallery columns-3 is-cropped\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" width=\"1024\" height=\"563\" src=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/1-privacy-error-not-secure-self-signed-cert-1024x563.jpg\" alt=\"\" data-id=\"140\" data-full-url=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/1-privacy-error-not-secure-self-signed-cert.jpg\" data-link=\"https:\/\/www.webmasterninjas.com\/developer\/?attachment_id=140\" class=\"wp-image-140\" srcset=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/1-privacy-error-not-secure-self-signed-cert-1024x563.jpg 1024w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/1-privacy-error-not-secure-self-signed-cert-300x165.jpg 300w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/1-privacy-error-not-secure-self-signed-cert-768x422.jpg 768w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/1-privacy-error-not-secure-self-signed-cert-1536x844.jpg 1536w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/1-privacy-error-not-secure-self-signed-cert-500x275.jpg 500w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/1-privacy-error-not-secure-self-signed-cert.jpg 1628w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"blocks-gallery-item__caption\">Privacy error with not secure self-signed cer<br>t<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" width=\"1024\" height=\"567\" src=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/2-export-self-signed-certificate-chrome-1024x567.jpg\" alt=\"\" data-id=\"141\" data-full-url=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/2-export-self-signed-certificate-chrome.jpg\" data-link=\"https:\/\/www.webmasterninjas.com\/developer\/?attachment_id=141\" class=\"wp-image-141\" srcset=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/2-export-self-signed-certificate-chrome-1024x567.jpg 1024w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/2-export-self-signed-certificate-chrome-300x166.jpg 300w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/2-export-self-signed-certificate-chrome-768x425.jpg 768w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/2-export-self-signed-certificate-chrome-1536x850.jpg 1536w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/2-export-self-signed-certificate-chrome-500x277.jpg 500w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/2-export-self-signed-certificate-chrome.jpg 1613w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"blocks-gallery-item__caption\">Export Self-signed Cert<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" width=\"1024\" height=\"563\" src=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/3-export-self-signed-cert-from-certificate-details-tab-1024x563.jpg\" alt=\"\" data-id=\"142\" data-full-url=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/3-export-self-signed-cert-from-certificate-details-tab.jpg\" data-link=\"https:\/\/www.webmasterninjas.com\/developer\/?attachment_id=142\" class=\"wp-image-142\" srcset=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/3-export-self-signed-cert-from-certificate-details-tab-1024x563.jpg 1024w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/3-export-self-signed-cert-from-certificate-details-tab-300x165.jpg 300w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/3-export-self-signed-cert-from-certificate-details-tab-768x422.jpg 768w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/3-export-self-signed-cert-from-certificate-details-tab-1536x845.jpg 1536w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/3-export-self-signed-cert-from-certificate-details-tab-500x275.jpg 500w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/3-export-self-signed-cert-from-certificate-details-tab.jpg 1626w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"blocks-gallery-item__caption\">Certificate Details Tab<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" width=\"1024\" height=\"558\" src=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/4-chrome-certificate-export-wizard-1024x558.jpg\" alt=\"\" data-id=\"143\" data-full-url=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/4-chrome-certificate-export-wizard.jpg\" data-link=\"https:\/\/www.webmasterninjas.com\/developer\/?attachment_id=143\" class=\"wp-image-143\" srcset=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/4-chrome-certificate-export-wizard-1024x558.jpg 1024w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/4-chrome-certificate-export-wizard-300x163.jpg 300w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/4-chrome-certificate-export-wizard-768x418.jpg 768w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/4-chrome-certificate-export-wizard-1536x837.jpg 1536w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/4-chrome-certificate-export-wizard-500x272.jpg 500w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/4-chrome-certificate-export-wizard.jpg 1632w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"blocks-gallery-item__caption\">Chrome Certificate Export Wizard<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" width=\"1024\" height=\"560\" src=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/5-use-first-der-format-for-cer-1024x560.jpg\" alt=\"\" data-id=\"144\" data-full-url=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/5-use-first-der-format-for-cer.jpg\" data-link=\"https:\/\/www.webmasterninjas.com\/developer\/?attachment_id=144\" class=\"wp-image-144\" srcset=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/5-use-first-der-format-for-cer-1024x560.jpg 1024w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/5-use-first-der-format-for-cer-300x164.jpg 300w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/5-use-first-der-format-for-cer-768x420.jpg 768w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/5-use-first-der-format-for-cer-1536x839.jpg 1536w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/5-use-first-der-format-for-cer-500x273.jpg 500w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/5-use-first-der-format-for-cer.jpg 1638w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"blocks-gallery-item__caption\">Use first Der format for Cer file<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" width=\"1024\" height=\"562\" src=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/6-export-to-where-you-will-import-from-1024x562.jpg\" alt=\"\" data-id=\"145\" data-full-url=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/6-export-to-where-you-will-import-from.jpg\" data-link=\"https:\/\/www.webmasterninjas.com\/developer\/?attachment_id=145\" class=\"wp-image-145\" srcset=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/6-export-to-where-you-will-import-from-1024x562.jpg 1024w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/6-export-to-where-you-will-import-from-300x165.jpg 300w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/6-export-to-where-you-will-import-from-768x422.jpg 768w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/6-export-to-where-you-will-import-from-1536x843.jpg 1536w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/6-export-to-where-you-will-import-from-500x274.jpg 500w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/6-export-to-where-you-will-import-from.jpg 1638w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"blocks-gallery-item__caption\">Export to where you will import from<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" width=\"1024\" height=\"561\" src=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/7-successful-certificate-export-1024x561.jpg\" alt=\"\" data-id=\"146\" data-full-url=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/7-successful-certificate-export.jpg\" data-link=\"https:\/\/www.webmasterninjas.com\/developer\/?attachment_id=146\" class=\"wp-image-146\" srcset=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/7-successful-certificate-export-1024x561.jpg 1024w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/7-successful-certificate-export-300x164.jpg 300w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/7-successful-certificate-export-768x421.jpg 768w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/7-successful-certificate-export-1536x842.jpg 1536w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/7-successful-certificate-export-500x274.jpg 500w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/7-successful-certificate-export.jpg 1638w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"blocks-gallery-item__caption\">Successful certificate export<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" width=\"1024\" height=\"560\" src=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/8-go-to-chrome-settings-1024x560.jpg\" alt=\"\" data-id=\"147\" data-full-url=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/8-go-to-chrome-settings.jpg\" data-link=\"https:\/\/www.webmasterninjas.com\/developer\/?attachment_id=147\" class=\"wp-image-147\" srcset=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/8-go-to-chrome-settings-1024x560.jpg 1024w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/8-go-to-chrome-settings-300x164.jpg 300w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/8-go-to-chrome-settings-768x420.jpg 768w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/8-go-to-chrome-settings-1536x841.jpg 1536w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/8-go-to-chrome-settings-500x274.jpg 500w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/8-go-to-chrome-settings.jpg 1637w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"blocks-gallery-item__caption\">Go to Chrome Settings<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" width=\"1024\" height=\"564\" src=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/9-under-advanced-security-click-manage-certificates-1024x564.jpg\" alt=\"\" data-id=\"148\" data-full-url=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/9-under-advanced-security-click-manage-certificates.jpg\" data-link=\"https:\/\/www.webmasterninjas.com\/developer\/?attachment_id=148\" class=\"wp-image-148\" srcset=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/9-under-advanced-security-click-manage-certificates-1024x564.jpg 1024w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/9-under-advanced-security-click-manage-certificates-300x165.jpg 300w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/9-under-advanced-security-click-manage-certificates-768x423.jpg 768w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/9-under-advanced-security-click-manage-certificates-1536x846.jpg 1536w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/9-under-advanced-security-click-manage-certificates-500x275.jpg 500w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/9-under-advanced-security-click-manage-certificates.jpg 1633w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"blocks-gallery-item__caption\">Under advanced security click manage certificates<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" width=\"1024\" height=\"565\" src=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/10-under-trusted-root-ca-tab-click-import-1024x565.jpg\" alt=\"\" data-id=\"149\" data-full-url=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/10-under-trusted-root-ca-tab-click-import.jpg\" data-link=\"https:\/\/www.webmasterninjas.com\/developer\/?attachment_id=149\" class=\"wp-image-149\" srcset=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/10-under-trusted-root-ca-tab-click-import-1024x565.jpg 1024w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/10-under-trusted-root-ca-tab-click-import-300x166.jpg 300w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/10-under-trusted-root-ca-tab-click-import-768x424.jpg 768w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/10-under-trusted-root-ca-tab-click-import-1536x847.jpg 1536w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/10-under-trusted-root-ca-tab-click-import-500x276.jpg 500w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/10-under-trusted-root-ca-tab-click-import.jpg 1635w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"blocks-gallery-item__caption\">Under Trusted Root CA tab click import<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" width=\"1024\" height=\"562\" src=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/11-chrome-certificate-import-wizard-1024x562.jpg\" alt=\"\" data-id=\"150\" data-full-url=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/11-chrome-certificate-import-wizard.jpg\" data-link=\"https:\/\/www.webmasterninjas.com\/developer\/?attachment_id=150\" class=\"wp-image-150\" srcset=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/11-chrome-certificate-import-wizard-1024x562.jpg 1024w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/11-chrome-certificate-import-wizard-300x165.jpg 300w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/11-chrome-certificate-import-wizard-768x421.jpg 768w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/11-chrome-certificate-import-wizard-1536x842.jpg 1536w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/11-chrome-certificate-import-wizard-500x274.jpg 500w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/11-chrome-certificate-import-wizard.jpg 1634w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"blocks-gallery-item__caption\">Chrome Certificate Import Wizard<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" width=\"1024\" height=\"560\" src=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/12-import-cert-file-we-just-exported-1024x560.jpg\" alt=\"\" data-id=\"151\" data-full-url=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/12-import-cert-file-we-just-exported.jpg\" data-link=\"https:\/\/www.webmasterninjas.com\/developer\/?attachment_id=151\" class=\"wp-image-151\" srcset=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/12-import-cert-file-we-just-exported-1024x560.jpg 1024w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/12-import-cert-file-we-just-exported-300x164.jpg 300w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/12-import-cert-file-we-just-exported-768x420.jpg 768w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/12-import-cert-file-we-just-exported-1536x841.jpg 1536w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/12-import-cert-file-we-just-exported-500x274.jpg 500w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/12-import-cert-file-we-just-exported.jpg 1637w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"blocks-gallery-item__caption\">Import cert file we just exported<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" width=\"1024\" height=\"564\" src=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/13-click-through-where-to-place-cert-next-1024x564.jpg\" alt=\"\" data-id=\"152\" data-full-url=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/13-click-through-where-to-place-cert-next.jpg\" data-link=\"https:\/\/www.webmasterninjas.com\/developer\/?attachment_id=152\" class=\"wp-image-152\" srcset=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/13-click-through-where-to-place-cert-next-1024x564.jpg 1024w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/13-click-through-where-to-place-cert-next-300x165.jpg 300w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/13-click-through-where-to-place-cert-next-768x423.jpg 768w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/13-click-through-where-to-place-cert-next-1536x846.jpg 1536w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/13-click-through-where-to-place-cert-next-500x275.jpg 500w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/13-click-through-where-to-place-cert-next.jpg 1632w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"blocks-gallery-item__caption\">Click through to place cert<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" width=\"1024\" height=\"561\" src=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/14-finish-completing-certificate-import-wizard-1024x561.jpg\" alt=\"\" data-id=\"153\" data-full-url=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/14-finish-completing-certificate-import-wizard.jpg\" data-link=\"https:\/\/www.webmasterninjas.com\/developer\/?attachment_id=153\" class=\"wp-image-153\" srcset=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/14-finish-completing-certificate-import-wizard-1024x561.jpg 1024w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/14-finish-completing-certificate-import-wizard-300x164.jpg 300w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/14-finish-completing-certificate-import-wizard-768x421.jpg 768w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/14-finish-completing-certificate-import-wizard-1536x842.jpg 1536w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/14-finish-completing-certificate-import-wizard-500x274.jpg 500w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/14-finish-completing-certificate-import-wizard.jpg 1637w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"blocks-gallery-item__caption\">Click Finish <\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" width=\"1024\" height=\"563\" src=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/15-click-through-install-security-warning-1024x563.jpg\" alt=\"\" data-id=\"154\" data-full-url=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/15-click-through-install-security-warning.jpg\" data-link=\"https:\/\/www.webmasterninjas.com\/developer\/?attachment_id=154\" class=\"wp-image-154\" srcset=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/15-click-through-install-security-warning-1024x563.jpg 1024w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/15-click-through-install-security-warning-300x165.jpg 300w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/15-click-through-install-security-warning-768x422.jpg 768w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/15-click-through-install-security-warning-1536x845.jpg 1536w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/15-click-through-install-security-warning-500x275.jpg 500w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/15-click-through-install-security-warning.jpg 1636w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"blocks-gallery-item__caption\">Click through Security Warning window<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" width=\"1024\" height=\"561\" src=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/16-successful-certificate-import-1024x561.jpg\" alt=\"\" data-id=\"155\" data-full-url=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/16-successful-certificate-import.jpg\" data-link=\"https:\/\/www.webmasterninjas.com\/developer\/?attachment_id=155\" class=\"wp-image-155\" srcset=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/16-successful-certificate-import-1024x561.jpg 1024w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/16-successful-certificate-import-300x164.jpg 300w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/16-successful-certificate-import-768x421.jpg 768w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/16-successful-certificate-import-1536x842.jpg 1536w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/16-successful-certificate-import-500x274.jpg 500w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/16-successful-certificate-import.jpg 1635w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"blocks-gallery-item__caption\">Successful import of Self-Signed Certificate into Trusted Root CA<\/figcaption><\/figure><\/li><\/ul><figcaption class=\"blocks-gallery-caption\">Exporting and Importing Self-Signed Certificate<\/figcaption><\/figure>\n\n\n\n<p>And finally, don&#8217;t forget to close and reopen your browser before checking the url and it should be good for 1000 days!  You can try longer, but I don&#8217;t recommend it since security requirements change all the time with browsers and web servers.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/successful-local-self-signed-cert.jpg\" rel=\"lightbox-single-image\" data-rel=\"lightbox-single-image-image-1\" data-rl_title=\"Successful Installation of Self Signed Cert for Local Dev Server\" data-rl_caption=\"Successful Installation of Self Signed Cert for Local Dev Server\" title=\"Successful Installation of Self Signed Cert for Local Dev Server\"><img loading=\"lazy\" width=\"1024\" height=\"576\" src=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/successful-local-self-signed-cert-1024x576.jpg\" alt=\"Successful Installation of Self Signed Cert for Local Dev Server\" class=\"wp-image-136\" srcset=\"https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/successful-local-self-signed-cert-1024x576.jpg 1024w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/successful-local-self-signed-cert-300x169.jpg 300w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/successful-local-self-signed-cert-768x432.jpg 768w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/successful-local-self-signed-cert-500x281.jpg 500w, https:\/\/www.webmasterninjas.com\/developer\/wp-content\/uploads\/2021\/02\/successful-local-self-signed-cert.jpg 1366w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Successful Installation of Self Signed Cert for Local Dev Server<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>As browser security increases in 2021 it&#8217;s gotten a lot harder to install a self-signed cert on your local dev server and get a nice pretty dark gray lock (I kinda miss the green). It&#8217;s very important, especially if you &hellip; <a href=\"https:\/\/www.webmasterninjas.com\/developer\/installing-a-self-signed-cert-on-your-local-machine\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":127,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[36,8,6],"tags":[35],"_links":{"self":[{"href":"https:\/\/www.webmasterninjas.com\/developer\/wp-json\/wp\/v2\/posts\/122"}],"collection":[{"href":"https:\/\/www.webmasterninjas.com\/developer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webmasterninjas.com\/developer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webmasterninjas.com\/developer\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webmasterninjas.com\/developer\/wp-json\/wp\/v2\/comments?post=122"}],"version-history":[{"count":18,"href":"https:\/\/www.webmasterninjas.com\/developer\/wp-json\/wp\/v2\/posts\/122\/revisions"}],"predecessor-version":[{"id":160,"href":"https:\/\/www.webmasterninjas.com\/developer\/wp-json\/wp\/v2\/posts\/122\/revisions\/160"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webmasterninjas.com\/developer\/wp-json\/wp\/v2\/media\/127"}],"wp:attachment":[{"href":"https:\/\/www.webmasterninjas.com\/developer\/wp-json\/wp\/v2\/media?parent=122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webmasterninjas.com\/developer\/wp-json\/wp\/v2\/categories?post=122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webmasterninjas.com\/developer\/wp-json\/wp\/v2\/tags?post=122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}