Link to this headingOpenSSL/GPG
Link to this headingGenerating Randomness
Link to this headingGenerating Keys
Set some ENV Variables:
# Base domain to create certificates for.
DOMAIN=*.generalzero.org
# Optional. The domain to create certificates for.
# If not specified, common name will be "*.$DOMAIN".
COMMON_NAME=generalzero.org
# Number of days to expire the certificates
NUM_OF_DAYS=3650
# Country name in 2 letters
COUNTRY="US"
# State or large administrative district
STATE="NY"
# City
LOCALITY="NY"
# Organization name. e.g. company
ORGANIZATION="GeneralZer0"
# Organizatinal unit. e.g. company sub-division or product name
ORGANIZATION_UNIT=""
Link to this headingGenerating a CA and Key
#!/bin/bash
# This script creates your server certificates and .p12 file for client authentication.
# Based on the answer in StackOverflow: https://stackoverflow.com/a/43666288
if [; then
fi
COMMON_NAME=
SUBJECT="/C=/ST=/L=/O=/CN="
|
# Create p12 file for client
# move output files to final filenames
# remove temp file
;
Link to this headingGenerating a Client Certificate
#!/bin/bash
# This script creates your own root authority certificates.
# Based on the answer in StackOverflow: https://stackoverflow.com/a/43666288
if [; then
fi
SUBJECT="/C=/ST=/L=/O=/CN="
Link to this headingTesting the Client Certificate
Testing a p12 cert
Testing with a break out cert:
Link to this headingSigning Keys
Link to this headingSigning Files
Link to this headingEncrypting
Link to this headingMisc Keys Commands
Show Private Key Algorithm:
Link to this headingTLS
Testing Specific SSL/TLS Versions: