Giter Club home page Giter Club logo

certificate-authority's Introduction

Certificate Authority Generator for OS X

๐Ÿ”’ ๐Ÿ’ป

One certificate to sign them all

Creates a trusted certificate authority on your Mac for dev mode

Overview

This script creates a trusted CA on your Mac and signs new trusted certificates with it. These are modern certificates that will pass modern browsers' heightened requirements. This is similar in function to mkcert but more easily configured using OpenSSL .cnf files.

Usage

Run bash gen-certs.sh and you'll be walked through the rest. Mac will ask for your password to add the CA to your keychain.

To use the website, run sudo nano /etc/hosts and add the following lines:

127.0.0.1       server-1.com
127.0.0.1       api.server-1.com

Sign more certificates

You can sign as many server certificates as you want with this new CA on your device. Just duplicate the server-1.cnf and duplicate the last two lines of gen-certs.sh.

Tips

If you're developing with Node, make sure to export NODE_EXTRA_CA_CERTS=$(pwd)/certs/ca-crt.pem to trust your CA.

certificate-authority's People

Contributors

bencmbrook avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Forkers

kesara10

certificate-authority's Issues

ERR_CERT_VALIDITY_TOO_LONG

It seems that Chrome (at least) does not accept a certificate that is valid for 1000 days.

When I reduced it to 365 it worked flawlessly! This was after I made a few attempts with Apple's Keychain Access and several answers from StackOverflow, to no avail. Thanks for putting this up! ๐Ÿš€

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.