Thanks to visit codestin.com
Credit goes to Github.com

Skip to content
/ lhttps Public
forked from madeny/lhttps

Create https for local development environment or localhost.

License

Notifications You must be signed in to change notification settings

Runneli/lhttps

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alt text

  • Make a self-signed Root Certificate Authority for local development.

Build StatusCircleCI

Something you need https on your local machine to test some functionality of your application, like payment system but some of them require a valid https. Like stripe. And you can’t use localhost to request a certificate from issuer like Let’s Encrypt. So your option is to create a self signed CA. This tool make it easy.


Just clone this repository by run this command: git clone [email protected]:madeny/lhttps.git from terminal
And cd in lhttps direcotry

  • Then run : php lh create domain.com
  • If you wish to add your rootCA.pem to your Mac OS trusted certificate. Use the a flag --a right after domain.com

Your domain.com.ssl.key and domain.com.ssl.crt will be in cert/live directory

Just update your nginx config with
ssl_certificate ‘path/to/‘domain.com.ssl.crt; #
ssl_certificate_key ‘path/to’/domain.com.ssl.key;

Right now only OSX and Ubuntu are support to create Certificate But only Mac OSX are support to automatically add your Root Certificate Authority (CA) to the Trusted list

Todo Next:

  • Full support for ubuntu
  • Support for Windows
  • Auto deploy certificate for Nginx
  • Auto deploy certificate for Apache
  • Auto deploy certificate for Node.js

About

Create https for local development environment or localhost.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%