Coder Social home page Coder Social logo

dummyx509's Introduction

Dummy X509
==========

A shell script which creates a dummy CA, server and client cert. Use only for
testing of SSL/HTTPS.

Usage
-----

    ./generate.sh server_ca_name server.alias.example.com client_ca_name client.alias.example.com

Generates a dummy CA cert (pem/crt formats) and a key:

    ca.crt
    ca.key
    ca.pem

A server cert (pem/crt) and a key:

    server.crt
    server.csr
    server.key
    server.pem

And a client cert (pem/crt) and a key:

    client-client_ca_name.crt
    client-client-ca_name.csr
    client-client-ca_name.key
    client-client-ca_name.pem

To generate another client just re-run the script with a different last
argument. The script will never overwrite CA and server certs, but it WILL
overwrite the client cert so use with care.

Aliases
-------

Both server and client certificates have common names (CN) and also an alias
that is generated as Subject Alternative Name extension. Note that in 2020 you
need to have SAN for TLS as most of the modern browsers and OSes refuse
certificates without SAN: https://support.apple.com/en-us/HT210176

Typically if your server is running under server.example.com you want to set
both CN and SAN to the same value:

    ./generate.sh server.example.com server.example.com client.example.com client.example.com

Have fun!

dummyx509's People

Contributors

lzap avatar

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.