Coder Social home page Coder Social logo

opensslca's Introduction

openSSLCA

A sample script to create a simple CA by using openssl

#In case you donot have openssl follow these instructions

Setup Ubuntu Iamge with openssl

  1. Download and install docker from store.docker.com https://docs.docker.com/docker-for-windows

  2. Build a Docker image

docker build -t openssl .

  1. Run a docker continer mapping to your current directory to home

docker run --rm -it -v ${PWD}:/home --name openssl openssl

  1. You will get the bash prompt. Then change the directory to /home and execute

chmod +x *.sh

(View docker.txt file to see more docker commands)

Setup a CA

  1. execute createCA.sh script. It will create your own CA. Make sure to give a proper common name to your CA (eg. UCSC CA). Your CA server's public key file is cacert.pem. It is in the sslCA directory. This public key has to be configured as trusted certificate in your application.

  2. execute createHostCert.sh script. Make sure to give a domain name/ip address as the common name (eg. www.scorelab.org). Your Web server private key and certificate will be created. Your private keyfile is hostkey.pem and certificate file is hostcert.pem. You can point these files by editing the htttpd-ssl.conf.

  3. execute createUserCert.sh. Make sure to give your correct name and e-mail address. It will create your own personal certificate. Your private key and certificates are packed into usr.pfx file. You can import it to your browser, e-mail or any other application.

opensslca's People

Contributors

kasundezoysa 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.