Coder Social home page Coder Social logo

gencertset's Introduction

  1. Edit users.conf to add users that want p12 keypairs generated for. These can be used for browsers or for web clients
  2. Edit fqdn.conf to add in domain names for server certificates to be generated

five scripts:

execute from bin/.sh Do not execute from the bin folder

1-BUILD-TRUSTSTORES

If authority folder does not exists then generates new self-signed root-ca and loads into staging/trust.jks In addition any truststores located in trusts folder are also added to this staging truststore. For example creating a link to current version JDK's public trust store will load those as well. Example: ln -s $JAVA_HOME/jre/lib/security/cacerts trusts/public

2-GENERATE-SERVERS

Looks at fqdn.conf and for every entry creates a javakeystore in the staging directory. This javakeystore will contain a server certificate for SSL **** Note this script may contain "not imported already exists messages" This could be an OK situation where multiple FQDNs exist for same domain such as iam.example.com and mail.example.com The reason is there is no need for multiple server certificates just client certificates in the same truststore. The CN of the domain certificates use wild card in form of *.example.com, so that multiple servers can share the same SSL alias.

3-GENERATE-USERS-AUTHN

Looks at user.conf and for every entry creates a pkcs (p12) keystore in the staging directory. This p12 file can be placed on web clients so they may use for their identity.

4-ADD-PUBILC-TRUSTS

Adds public trusts that are included in default JRE environment located in $JAVA_HOME/jre/lib/security/cacerts trusts/public into the trust stores that are being built.

5-PUBLISH

This script publishes the keystores, certificates and keys to the FRDP pki location

If wish to generate a new CA trust certificae for SSL on all the certificates, delete the authority and staging folders prior to running these scripts. Otherwise the existing CA certificate in the staging/authority folder will continue to be used to sign additional certificates and the keystores and truststore will be appended to rather than replaced.

*note: Other than 1-BUILD-TRUSTSTORES scripts cannot be run unless an existing authority and staging are in place. ie. run 1-BUILD-TRUSTSTORES first unless appending with existing stores.

OS X Notes

For OS X the default OpenSSL configuration does not contain V3 extensions. sudo vi /etc/ssl/openssl.cnf and add the following:

[ v3_ca ] basicConstraints = critical,CA:TRUE subjectKeyIdentifier = hash authorityKeyIdentifier = keyid:always,issuer:always

gencertset's People

Contributors

frdp avatar

Watchers

James Cloos avatar  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.