![]() ![]() We will be using homebrew to simplify installing the software packages that we need. Prepare the Systemīefore you get started we assume you have the following requisites: you are using the Bash shell, have admin rights to your computer, and are using Chrome as your browser. Instead of dealing with the aforementioned downsides, we will instead create and trust our own certificate authority, request and then sign a certificate for our development server, and setup a local DNS server to handle development web traffic. You need to edit your hosts file every time you start a new site, and you need to edit your hosts file again any time you want to access the production website once it is published. You need a production certificate before you are even done with your development work. The previous approach has some downsides however: Your production certificate and secret key are sitting on an actively used box, which makes them easier to steal. If you already have a production SSL certificate, using it in development could be achieved as simply as starting Passenger with: sudo passenger start -ssl -environment development -ssl-certificate "/path/to/certificate.pem" -ssl-certificate-key "/path/to/key.pem" -port 443 It also doesn't train you to click through SSL warnings in your browser. ![]() For example setting up SSL in your development environment helps you to notice and fix mixed content warnings so there are no surprises when you move to staging or production. ![]() It is a good idea to have your development environment be as close to your production environment as possible, while remaining convenient. Not on macOS? Check out our Library article for more configurations! Why use SSL in development? This blog post will show you how to create, install, and trust a self signed certificate on your development web server, and setup your DNS to redirect all your development traffic to your development box. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |