HTTPS and SSL are important for security and it’s great that most browsers require or strongly encourage them to be used. This can be a little tricky, though, when you’re doing local development and you keep getting console errors about localhost not having SSL enabled. If you create a self-signed certificate with something like mkcert then you’re halfway there.
The rest of the battle is getting your web server to use the certificate (which will depend on what kind of server you’re using) and getting your system to trust your certificate.
To make sure your system and browsers (including Chrome, Firefox, Safari, Edge, etc.) will accept your certificate as valid, you can follow these steps:
All Itemscategory (lower left)
.p12, or something else) in Finder
When using this certificatefrom
Here’s a video that might also be helpful:
Now if you’re running anything on localhost that’s using your self-signed certificate, you can open that in any browser and you should see in the address bar that this is now a trusted site!