RepositoryPHP
madeny

madeny/lhttps

Create https for local development environment or localhost.

177stars
17forks
0issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: https-certificate

#1 Repository of the week

1
TINIX TRENDING·Topic: signed

#1 Repository of the week

1
TINIX TRENDING·Topic: root-certificate

#1 Repository of the week

Alt text

  • Create a Certifcate Authority that can be use to issue certificate for domains.

Actions Status Build Status CircleCI BCH compliance


Sometimes 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 certificate authority (CA). This tool make it easy.


Just clone this repository by run this command:

git clone git@github.com:madeny/lhttps.git` 
from terminal and do the following:
  • cd lhttps
  • composer install
  • 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 like so: php lh create domain.com --a

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

Similar Projects

Discover other similar projects and AI models.

RepositoryGo
FiloSottile/mkcert

A simple zero-config tool to make locally trusted development certificates with any names you'd like.

59.9k
Aug 13, 2024
RepositoryShell
judasn/Linux-Tutorial

《Java 程序员眼中的 Linux》

8.7k
Jun 11, 2022
RepositoryTypeScript
daquinoaldo/https-localhost

HTTPS server running on localhost

303
Nov 1, 2026
RepositoryJavaScript
jeffcaldwellca/mkcertWeb

Self-hosted web UI for mkcert: generate, download and monitor locally-trusted SSL certificates, with SCEP enrollment, SSO and Docker.

223
Nov 10, 2026
RepositoryGo
venkatkrishna07/mkdev

Trusted localhost HTTPS — local CA, /etc/hosts, mDNS LAN sharing, reverse proxy. Maps https://name.local → localhost:port

146
Nov 16, 2026
RepositoryRust
yetidevworks/reeve

A TUI based local web development stack for macOS and Linux

104
Nov 13, 2026
RepositoryTypeScript
nilbuild/developer-roadmap

Interactive roadmaps, guides and other educational content to help developers grow in their careers.

373.1k
Dec 1, 2026
RepositoryMarkdown
DigitalPlatDev/FreeDomain

Free domain registration and practical DNS learning resources for everyone.

209.9k
Aug 12, 2026
RepositoryC++
tensorflow/tensorflow

An Open Source Machine Learning Framework for Everyone

201.9k
Dec 1, 2026