Skip to content

lucksolutions/certs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

OpenSSL Scripts

This project contains bash shell scripts to ease the use for creating certificates with OpenSSL.

Create a Certificate Authority

To create a new certificate authority, run the create-ca.sh script. By default this creates the CA in the current directory, but you can provide the directory to use as the first parameter.

create-ca.sh /etc/ca

This scripts creates the following directory structure:

  • certs - Stores the generated public certificates for the CA as well as any servers signed by this authority.
  • crl - Stores the certificate revocation list
  • private - Stores the private key files for the CA and any certificates create by these scripts.
  • csr - Stores certificate request files

Create an Intermediate Certificate Authority

To create a new certificate authority, run the create-intermediate-ca.sh script. By default this creates the intermediate CA using the CA in the current directory, but you can provide the CA directory to use as the first parameter. This will create the intermediate CA files in the /intermediate directory.

create-intermediate-ca.sh /etc/ca

Create a Server Certificate

To create a server certificate, run the create-server.sh script. By default this creates the certificate using the CA in the current directory, but you can provide the CA directory to use using the -d parameter. The name of the server should be passed as the first parameter. The signed server certificate will be placed in the /certs and the generated private key in the /private.

create-server.sh -d /etc/ca www.example.com

About

shell scripts for easing use of openssl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages