<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://logicwiki.co.uk/index.php?action=history&amp;feed=atom&amp;title=Set_up_HTTPS_on_localhost_for_macOS</id>
		<title>Set up HTTPS on localhost for macOS - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://logicwiki.co.uk/index.php?action=history&amp;feed=atom&amp;title=Set_up_HTTPS_on_localhost_for_macOS"/>
		<link rel="alternate" type="text/html" href="https://logicwiki.co.uk/index.php?title=Set_up_HTTPS_on_localhost_for_macOS&amp;action=history"/>
		<updated>2026-04-22T09:02:09Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>https://logicwiki.co.uk/index.php?title=Set_up_HTTPS_on_localhost_for_macOS&amp;diff=2002&amp;oldid=prev</id>
		<title>AliIybar: Created page with &quot;Category:SSL Category:Mac  == Using SSL on MacOS ==  cd ~/   mkdir .localhost-ssl   sudo openssl genrsa -out ~/.localhost-ssl/localhost.key 2048   sudo openssl req -ne...&quot;</title>
		<link rel="alternate" type="text/html" href="https://logicwiki.co.uk/index.php?title=Set_up_HTTPS_on_localhost_for_macOS&amp;diff=2002&amp;oldid=prev"/>
				<updated>2020-08-02T08:11:47Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php?title=Category:SSL&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:SSL (page does not exist)&quot;&gt;Category:SSL&lt;/a&gt; &lt;a href=&quot;/index.php?title=Category:Mac&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Mac (page does not exist)&quot;&gt;Category:Mac&lt;/a&gt;  == Using SSL on MacOS ==  cd ~/   mkdir .localhost-ssl   sudo openssl genrsa -out ~/.localhost-ssl/localhost.key 2048   sudo openssl req -ne...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:SSL]]&lt;br /&gt;
[[Category:Mac]]&lt;br /&gt;
&lt;br /&gt;
== Using SSL on MacOS ==&lt;br /&gt;
 cd ~/&lt;br /&gt;
&lt;br /&gt;
 mkdir .localhost-ssl&lt;br /&gt;
&lt;br /&gt;
 sudo openssl genrsa -out ~/.localhost-ssl/localhost.key 2048&lt;br /&gt;
&lt;br /&gt;
 sudo openssl req -new -x509 -key ~/.localhost-ssl/localhost.key -out ~/.localhost-ssl/localhost.crt -days 3650 -subj /CN=localhost&lt;br /&gt;
&lt;br /&gt;
 sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ~/.localhost-ssl/localhost.crt&lt;br /&gt;
&lt;br /&gt;
 npm install -g http-server&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot; &lt;br /&gt;
 function https-server() {&lt;br /&gt;
   http-server --ssl --cert ~/.localhost-ssl/localhost.crt --key ~/.localhost-ssl/localhost.key&lt;br /&gt;
 }&lt;br /&gt;
 &amp;quot; &amp;gt;&amp;gt; ~/.bash_profile&lt;br /&gt;
&lt;br /&gt;
 source ~/.bash_profile&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;You're ready to use https on localhost 💅&amp;quot;&lt;br /&gt;
 echo &amp;quot;Navigate to a project directory and run:&amp;quot;&lt;br /&gt;
 echo &amp;quot;&amp;quot;&lt;br /&gt;
 echo &amp;quot;https-server&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Rider ==&lt;br /&gt;
# Delete any existing certificate from keychain&lt;br /&gt;
# run '''dotnet dev-certs https''' in command prompt&lt;br /&gt;
# run '''dotnet dev-certs https --trust''' in command prompt&lt;/div&gt;</summary>
		<author><name>AliIybar</name></author>	</entry>

	</feed>