All Projects → dakshshah96 → Local Cert Generator

dakshshah96 / Local Cert Generator

🚀 A set of scripts to quickly generate a HTTPS certificate for your local development environment.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Local Cert Generator

django-yadpt-starter
Yet Another Django Project Template skeleton for Django projects
Stars: ✭ 28 (-96.66%)
Mutual labels:  https, ssl-certificate
Nginxconfig.io
⚙️ NGINX config generator on steroids 💉
Stars: ✭ 14,983 (+1685.82%)
Mutual labels:  https, ssl-certificate
Pric
Simple zero-config tool to create Private Certificate Authority & issue locally-trusted development server certificates with any domain names you'd like. SSL certificates for development purposes.
Stars: ✭ 87 (-89.63%)
Mutual labels:  https, ssl-certificate
Getaltname
Extract subdomains from SSL certificates in HTTPS sites.
Stars: ✭ 320 (-61.86%)
Mutual labels:  https, ssl-certificate
Passcore
A self-service password management tool for Active Directory
Stars: ✭ 787 (-6.2%)
Mutual labels:  ssl-certificate
Brynet
A Header-Only cross-platform C++ TCP network library . Can use vcpkg(https://github.com/Microsoft/vcpkg/tree/master/ports/brynet) install
Stars: ✭ 674 (-19.67%)
Mutual labels:  https
Ansible Role Nginx
Ansible Role - Nginx
Stars: ✭ 632 (-24.67%)
Mutual labels:  https
Pshtt
Scan domains and return data based on HTTPS best practices
Stars: ✭ 597 (-28.84%)
Mutual labels:  https
Openssl Nodejs
is a package which gives you a possibility to run every OpenSSL command 🔒 in Node.js in a handy way. Moreover, parameters like -in, -keyin, -config and etc can be replaced by a raw data (Buffor).
Stars: ✭ 25 (-97.02%)
Mutual labels:  ssl-certificate
Finalrecon
The Last Web Recon Tool You'll Need
Stars: ✭ 888 (+5.84%)
Mutual labels:  ssl-certificate
Sshttp
SSH/HTTP(S) multiplexer. Run a webserver and a sshd on the same port w/o changes.
Stars: ✭ 766 (-8.7%)
Mutual labels:  https
Agoo
A High Performance HTTP Server for Ruby
Stars: ✭ 679 (-19.07%)
Mutual labels:  https
Netcoreserver
Ultra fast and low latency asynchronous socket server & client C# .NET Core library with support TCP, SSL, UDP, HTTP, HTTPS, WebSocket protocols and 10K connections problem solution
Stars: ✭ 799 (-4.77%)
Mutual labels:  https
Devcert
Local HTTPS development made easy
Stars: ✭ 655 (-21.93%)
Mutual labels:  https
Farwest
Framework for building RESTful HATEOAS-driven applications.
Stars: ✭ 18 (-97.85%)
Mutual labels:  https
Hiproxy
🛠 hiproxy is a lightweight proxy tool for Front-End developers based on Node.js that supports an NGINX-like configuration. 🔥
Stars: ✭ 629 (-25.03%)
Mutual labels:  https
Bypass
Bypass provides a quick way to create a custom plug that can be put in place instead of an actual HTTP server to return prebaked responses to client requests.
Stars: ✭ 731 (-12.87%)
Mutual labels:  https
Globaleaks
GlobaLeaks is free, open source software enabling anyone to easily set up and maintain a secure whistleblowing platform.
Stars: ✭ 832 (-0.83%)
Mutual labels:  https
Symfony Docker
A Docker-based installer and runtime for Symfony. Install: download and `docker-compose up`.
Stars: ✭ 732 (-12.75%)
Mutual labels:  https
Gun
HTTP/1.1, HTTP/2 and Websocket client for Erlang/OTP.
Stars: ✭ 710 (-15.38%)
Mutual labels:  https

HTTPS for localhost

A set of scripts to quickly generate a HTTPS certificate for your local development environment.

How-to

  1. Clone this repository and cd into it:
git clone https://github.com/dakshshah96/local-cert-generator.git
cd local-cert-generator
  1. Run the script to create a root certificate:
sh createRootCA.sh
  1. Add the root certificate we just generated to your list of trusted certificates. This step depends on the operating system you're running:

    • macOS: Open Keychain Access and import the root certificate to your System keychain. Then mark the certificate as trusted.

    Trust root certificate

    • Linux: Depending on your Linux distribution, you can use trust, update-ca-certificates or another command to mark the generated root certificate as trusted.

Note: You may need to restart your browser to load the newly trusted root certificate correctly.

  1. Run the script to create a domain certificate for localhost:
sh createSelfSigned.sh
  1. Move server.key and server.crt to an accessible location on your server and include them when starting it. In an Express app running on Node.js, you'd do something like this:
var path = require('path')
var fs = require('fs')
var express = require('express')
var https = require('https')

var certOptions = {
  key: fs.readFileSync(path.resolve('build/cert/server.key')),
  cert: fs.readFileSync(path.resolve('build/cert/server.crt'))
}

var app = express()

var server = https.createServer(certOptions, app).listen(443)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].