Skip to content

Instantly share code, notes, and snippets.

@Elrashid
Last active October 20, 2019 14:32
Show Gist options
  • Select an option

  • Save Elrashid/2ec15e5074e5d2b8736866b829f3792e to your computer and use it in GitHub Desktop.

Select an option

Save Elrashid/2ec15e5074e5d2b8736866b829f3792e to your computer and use it in GitHub Desktop.
openssl genrate ca child private key and certificate

openssl genrate ca child private key and certificate

Step 01

We will open a Run window

On the keybord press

Windoes Key + R

wait

Step 02

We will open a cmd Window

On the Run window text-Input write

cmd

on the Keybord press

Enter

Step 03 - optional

Optinal set HOSTNAME.DOT or it will default to shop.com

SET HOSTNAME=shop

SET DOT=org

Step 04 - optional

We will set OPENSSL PATH

On the CMD Window write

SET OPENSSL_PATH=C:\OpenSSL-Win32\

Step 05

We will make a directory and make it the working directory for our cmd

On the CMD Window write

mkdir D:\Projects\P.OpenSSL

cd /d D:\Projects\P.OpenSSL

Step 06

We will download and run the script

On the CMD Window write

set scriptUrl="https://gist.githubusercontent.com/Elrashid/2ec15e5074e5d2b8736866b829f3792e/raw/openssl_genrate_ca_child_private_key_and_certificate.bat"

PowerShell -Command "(new-object System.Net.WebClient).DownloadFile('%scriptUrl%','openssl_genrate_ca_child_private_key_and_certificate.bat')"

openssl_genrate_ca_child_private_key_and_certificate.bat
#
# OpenSSL example configuration file.
# This is mostly being used for generation of certificate requests.
#
# This definition stops the following lines choking if HOME isn't
# defined.
HOME = ./DATA
RANDFILE = $ENV::HOME/.rnd
# Extra OBJECT IDENTIFIER info:
#oid_file = $ENV::HOME/.oid
oid_section = new_oids
# To use this configuration file with the "-extfile" option of the
# "openssl x509" utility, name here the section containing the
# X.509v3 extensions to use:
# extensions =
# (Alternatively, use a configuration file that has only
# X.509v3 extensions in its main [= default] section.)
[ new_oids ]
# We can add new OIDs in here for use by 'ca', 'req' and 'ts'.
# Add a simple OID like this:
# testoid1=1.2.3.4
# Or use config file substitution like this:
# testoid2=${testoid1}.5.6
# Policies used by the TSA examples.
tsa_policy1 = 1.2.3.4.1
tsa_policy2 = 1.2.3.4.5.6
tsa_policy3 = 1.2.3.4.5.7
####################################################################
[ ca ]
default_ca = CA_default # The default ca section
####################################################################
[ CA_default ]
dir = my_dir_absolute_path\\Data\\CA # Where everything is kept
certs = $dir\\certs # Where the issued certs are kept
crl_dir = $dir\\crl # Where the issued crl are kept
database = $dir\\index.txt # database index file.
#unique_subject = no # Set to 'no' to allow creation of
# several certs with same subject.
new_certs_dir = $dir\\newcerts # default place for new certs.
certificate = $dir\\ca.crt # The CA certificate
serial = $dir\\serial # The current serial number
crlnumber = $dir\\crlnumber # the current crl number
# must be commented out to leave a V1 CRL
crl = $dir/crl.pem # The current CRL
private_key = $dir\\private\\ca.key # The private key
RANDFILE = $dir\private\.rand # private random number file
x509_extensions = usr_cert # The extensions to add to the cert
# Comment out the following two lines for the "traditional"
# (and highly broken) format.
name_opt = ca_default # Subject Name options
cert_opt = ca_default # Certificate field options
# Extension copying option: use with caution.
copy_extensions = copy
# Extensions to add to a CRL. Note: Netscape communicator chokes on V2 CRLs
# so this is commented out by default to leave a V1 CRL.
# crlnumber must also be commented out to leave a V1 CRL.
# crl_extensions = crl_ext
default_days = 365 # how long to certify for
default_crl_days= 30 # how long before next CRL
default_md = default # use public key default MD
preserve = no # keep passed DN ordering
# A few difference way of specifying how similar the request should look
# For type CA, the listed attributes must be the same, and the optional
# and supplied fields are just that :-)
policy = policy_anything
# For the CA policy
[ policy_match ]
countryName = match
stateOrProvinceName = match
organizationName = match
organizationalUnitName = optional
commonName = supplied
emailAddress = optional
# For the 'anything' policy
# At this point in time, you must list all acceptable 'object'
# types.
[ policy_anything ]
countryName = optional
stateOrProvinceName = optional
localityName = optional
organizationName = optional
organizationalUnitName = optional
commonName = supplied
emailAddress = optional
####################################################################
[ req ]
prompt = no
default_bits = 2048
default_keyfile = ca.key
distinguished_name = req_distinguished_name
attributes = req_attributes
x509_extensions = v3_ca # The extensions to add to the self signed cert
# Passwords for private keys if not present they will be prompted for
# input_password = secret
# output_password = secret
# This sets a mask for permitted string types. There are several options.
# default: PrintableString, T61String, BMPString.
# pkix : PrintableString, BMPString (PKIX recommendation before 2004)
# utf8only: only UTF8Strings (PKIX recommendation after 2004).
# nombstr : PrintableString, T61String (no BMPStrings or UTF8Strings).
# MASK:XXXX a literal mask value.
# WARNING: ancient versions of Netscape crash on BMPStrings or UTF8Strings.
string_mask = utf8only
# req_extensions = v3_req # The extensions to add to a certificate request
[ req_distinguished_name ]
countryName = AE
#countryName_default = AU
#countryName_min = 2
#countryName_max = 2
#stateOrProvinceName = AE
#stateOrProvinceName_default = AE
localityName = AE
0.organizationName = AE
#0.organizationName_default = AE
# we can do this but it is not needed normally :-)
#1.organizationName = Second Organization Name (eg, company)
#1.organizationName_default = World Wide Web Pty Ltd
organizationalUnitName = AE
#organizationalUnitName_default =
commonName = CARootCA
#commonName_max = 64
emailAddress = [email protected]
#emailAddress_max = 64
# SET-ex3 = SET extension number 3
[ req_attributes ]
challengePassword = A challenge password
challengePassword_min = 4
challengePassword_max = 20
unstructuredName = An optional company name
[ usr_cert ]
# These extensions are added when 'ca' signs a request.
# This goes against PKIX guidelines but some CAs do it and some software
# requires this to avoid interpreting an end user certificate as a CA.
basicConstraints=CA:FALSE
# Here are some examples of the usage of nsCertType. If it is omitted
# the certificate can be used for anything *except* object signing.
# This is OK for an SSL server.
# nsCertType = server
# For an object signing certificate this would be used.
# nsCertType = objsign
# For normal client use this is typical
# nsCertType = client, email
# and for everything including object signing:
# nsCertType = client, email, objsign
# This is typical in keyUsage for a client certificate.
# keyUsage = nonRepudiation, digitalSignature, keyEncipherment
# This will be displayed in Netscape's comment listbox.
nsComment = "OpenSSL Generated Certificate"
# PKIX recommendations harmless if included in all certificates.
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid,issuer
# This stuff is for subjectAltName and issuerAltname.
# Import the email address.
# subjectAltName=email:copy
# An alternative to produce certificates that aren't
# deprecated according to PKIX.
# subjectAltName=email:move
# Copy subject details
# issuerAltName=issuer:copy
#nsCaRevocationUrl = http://www.domain.dom/ca-crl.pem
#nsBaseUrl
#nsRevocationUrl
#nsRenewalUrl
#nsCaPolicyUrl
#nsSslServerName
# This is required for TSA certificates.
# extendedKeyUsage = critical,timeStamping
[ v3_req ]
# Extensions to add to a certificate request
basicConstraints = CA:FALSE
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
[ v3_ca ]
# Extensions for a typical CA
# PKIX recommendation.
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid:always,issuer
basicConstraints = critical,CA:true
# Key usage: this is typical for a CA certificate. However since it will
# prevent it being used as an test self-signed certificate it is best
# left out by default.
# keyUsage = cRLSign, keyCertSign
# Some might want this also
# nsCertType = sslCA, emailCA
# Include email address in subject alt name: another PKIX recommendation
# subjectAltName=email:copy
# Copy issuer details
# issuerAltName=issuer:copy
# DER hex encoding of an extension: beware experts only!
# obj=DER:02:03
# Where 'obj' is a standard or added object
# You can even override a supported extension:
# basicConstraints= critical, DER:30:03:01:01:FF
[ crl_ext ]
# CRL extensions.
# Only issuerAltName and authorityKeyIdentifier make any sense in a CRL.
# issuerAltName=issuer:copy
authorityKeyIdentifier=keyid:always
[ proxy_cert_ext ]
# These extensions should be added when creating a proxy certificate
# This goes against PKIX guidelines but some CAs do it and some software
# requires this to avoid interpreting an end user certificate as a CA.
basicConstraints=CA:FALSE
# Here are some examples of the usage of nsCertType. If it is omitted
# the certificate can be used for anything *except* object signing.
# This is OK for an SSL server.
# nsCertType = server
# For an object signing certificate this would be used.
# nsCertType = objsign
# For normal client use this is typical
# nsCertType = client, email
# and for everything including object signing:
# nsCertType = client, email, objsign
# This is typical in keyUsage for a client certificate.
# keyUsage = nonRepudiation, digitalSignature, keyEncipherment
# This will be displayed in Netscape's comment listbox.
nsComment = "OpenSSL Generated Certificate"
# PKIX recommendations harmless if included in all certificates.
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid,issuer
# This stuff is for subjectAltName and issuerAltname.
# Import the email address.
# subjectAltName=email:copy
# An alternative to produce certificates that aren't
# deprecated according to PKIX.
# subjectAltName=email:move
# Copy subject details
# issuerAltName=issuer:copy
#nsCaRevocationUrl = http://www.domain.dom/ca-crl.pem
#nsBaseUrl
#nsRevocationUrl
#nsRenewalUrl
#nsCaPolicyUrl
#nsSslServerName
# This really needs to be in place for it to be a proxy certificate.
proxyCertInfo=critical,language:id-ppl-anyLanguage,pathlen:3,policy:foo
####################################################################
[ tsa ]
default_tsa = tsa_config1 # the default TSA section
[ tsa_config1 ]
# These are used by the TSA reply generation only.
dir = ./demoCA # TSA root directory
serial = $dir/tsaserial # The current serial number (mandatory)
crypto_device = builtin # OpenSSL engine to use for signing
signer_cert = $dir/tsacert.pem # The TSA signing certificate
# (optional)
certs = $dir/ca.crt # Certificate chain to include in reply
# (optional)
signer_key = $dir/private/tsakey.pem # The TSA private key (optional)
signer_digest = sha256 # Signing digest to use. (Optional)
default_policy = tsa_policy1 # Policy if request did not specify it
# (optional)
other_policies = tsa_policy2, tsa_policy3 # acceptable policies (optional)
digests = sha1, sha256, sha384, sha512 # Acceptable message digests (mandatory)
accuracy = secs:1, millisecs:500, microsecs:100 # (optional)
clock_precision_digits = 0 # number of digits after dot. (optional)
ordering = yes # Is ordering defined for timestamps?
# (optional, default: no)
tsa_name = yes # Must the TSA name be included in the reply?
# (optional, default: no)
ess_cert_id_chain = no # Must the ESS cert id chain be included?
# (optional, default: no)

#Extra

Step 01

Get the passed variables

SET HOSTNAME=%1
SET DOT=%2

Step 02

Set the Certificate Signing Request variables

SET COUNTRY=US

SET STATE=KS

SET CITY=Olathe

SET ORGANIZATION=IT

SET ORGANIZATION_UNIT=IT Department

SET EMAIL=webmaster@%HOSTNAME%.%DOT%

Step 03

Create a folder

md  Data\NotCA\%HOSTNAME%.%DOT%

Step 04

Write a confige file

(
echo [req]
echo default_bits = 2048
echo prompt = no
echo default_md = sha256
echo x509_extensions = v3_req
echo distinguished_name = dn
echo req_extensions = v3_req
echo:
echo [dn]
echo C = %COUNTRY%
echo ST = %STATE%
echo L = %CITY%
echo O = %ORGANIZATION%
echo OU = %ORGANIZATION_UNIT%
echo emailAddress = %EMAIL%
echo CN = %HOSTNAME%.%DOT%
echo:
echo [v3_req]
echo basicConstraints = CA:FALSE
echo keyUsage = nonRepudiation, digitalSignature, keyEncipherment
echo subjectAltName = @alt_names
echo:
echo [alt_names]
echo DNS.1 = *.%HOSTNAME%.%DOT%
echo DNS.2 = %HOSTNAME%.%DOT%
)>Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.cnf

Step 05

Genrate a Private Key

openssl genrsa -out Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.key 4096

Step 05

Generate a Certificate Signing Request

openssl.exe req -new -sha256 -key  Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.key -out Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.csr -config Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.cnf

Step 06 - General Refrances

"IN YOUR SSL FOLDER, SAVE THIS FILE AS: makeCERT.bat" - Google Search

Step 07 - Code Extra

Note 1

openssl req -new -x509 -newkey rsa:2048 -sha256 -nodes -keyout %HOSTNAME%.key -days 3560 -out %HOSTNAME%.crt -config %HOSTNAME%.cnf
openssl genrsa -out ca.key 2048
openssl.exe req -new -x509 -extensions v3_ca -key ca.key -out ca.crt -days 365 -config Data\CA\ca.cfg
md "data/CA" "data/CA/certs" "data/CA/crl" "data/CA/newcerts" "data/CA/private"
type nul >> "data/CA/index.txt"
type nul >> "data/CA/index.txt.attr"
echo 1000 >> "data/CA/serial"
move ca.key "data/ca/private/"
move ca.crt "data/ca/"
openssl genrsa -out ca.key 2048
openssl req -new -x509 -extensions v3_ca -key ca.key -out ca.crt -days 365 -config Data\CA\ca.cfg
md "data/CA" "data/CA/certs" "data/CA/crl" "data/CA/newcerts" "data/CA/private"
type nul >> "data/CA/index.txt"
type nul >> "data/CA/index.txt.attr"
echo 1000 >> "data/CA/serial"
move ca.key "data/ca/private/"
move ca.crt "data/ca/"
openssl pkcs12 -export -in Data\CA\ca.crt -inkey Data\CA\private\ca.key -out Data\CA\private\ca.pfx -passout pass:
if not defined HOSTNAME SET HOSTNAME=%1
if not defined DOT SET DOT=%2
if not defined COUNTRY SET COUNTRY=AE
if not defined STATE SET STATE=DU
if not defined CITY SET CITY=Dubai
if not defined ORGANIZATION SET ORGANIZATION=IT
if not defined ORGANIZATION_UNIT SET ORGANIZATION_UNIT=IT Department
if not defined EMAIL SET EMAIL=webmaster@%HOSTNAME%.%DOT%
md Data\NotCA\%HOSTNAME%.%DOT%
(
echo [req]
echo default_bits = 2048
echo prompt = no
echo default_md = sha256
echo x509_extensions = v3_req
echo distinguished_name = dn
echo req_extensions = v3_req
echo:
echo [dn]
echo C = %COUNTRY%
echo ST = %STATE%
echo L = %CITY%
echo O = %ORGANIZATION%
echo OU = %ORGANIZATION_UNIT%
echo emailAddress = %EMAIL%
echo CN = %HOSTNAME%.%DOT%
echo:
echo [v3_req]
echo basicConstraints = CA:FALSE
echo keyUsage = nonRepudiation, digitalSignature, keyEncipherment
echo subjectAltName = @alt_names
echo:
echo [alt_names]
echo DNS.1 = *.%HOSTNAME%.%DOT%
echo DNS.2 = %HOSTNAME%.%DOT%
)>Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.cnf
openssl genrsa -out Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.key 4096
openssl.exe req -new -sha256 -key Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.key -out Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.csr -config Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.cnf

Notes

Step 01

SET HOSTNAME=shop

SET DOT=org

Step 02

openssl genrsa -out ca.key 2048

openssl.exe req -new -x509 -extensions v3_ca -key ca.key -out ca.crt -days 365 -config Data\CA\ca.cfg

Step 03

md "data/CA" "data/CA/certs" "data/CA/crl" "data/CA/newcerts" "data/CA/private"

type nul >> "data/CA/index.txt"

type nul >> "data/CA/index.txt.attr"

echo 1000 >> "data/CA/serial"

move ca.key "data/ca/private/"

move ca.crt "data/ca/"

Step 04

openssl genrsa -out ca.key 2048

openssl req -new -x509 -extensions v3_ca -key ca.key -out ca.crt -days 365 -config Data\CA\ca.cfg

Step 05

md "data/CA" "data/CA/certs" "data/CA/crl" "data/CA/newcerts" "data/CA/private"

type nul >> "data/CA/index.txt"

type nul >> "data/CA/index.txt.attr"

echo 1000 >> "data/CA/serial"

move ca.key "data/ca/private/"

move ca.crt "data/ca/"

Step 06

call CreateCert.bat %HOSTNAME% %DOT%

Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.csr

openssl ca -out Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.crt  -config Data\CA\ca.cfg -infiles Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.csr  

Step 07

openssl pkcs12 -export -in Data\CA\ca.crt -inkey Data\CA\private\ca.key -out Data\CA\private\ca.pfx -passout pass:

openssl pkcs12 -export -in Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.crt -inkey Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.key -out Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.pfx -passout pass:

Step 08 - Genral Refrances

Understanding OpenSSL: config file | Random ideas, shared notes

Windows OpenSSL.cnf File Example (Configuring Java CAPS for SSL Support)

openssl - selft signed certificate for AES128-GCM-SHA256 cipher - Information Security Stack Exchange

ssl - How to create a self-signed certificate with openssl? - Stack Overflow

Create the intermediate pair — OpenSSL Certificate Authority — Jamie Nguyen

404 Page not found • Area536

Step 09 - code snap reference

alias - Aliases in Windows command prompt - Stack Overflow

dokey openssl="D:\Experiments\E.Make.Certificate\OpenSSL\OpenSSL-Win32\bin\openssl.exe" $*

batch file - What is equivalent to Linux mkdir -p in Windows? - Stack Overflow

md "data/CA" "data/CA/certs" "data/CA/crl" "data/CA/newcerts" "data/CA/private"

cmd - Windows equivalent of 'touch' (i.e. the node.js way to create an index.html) - Stack Overflow

type nul >> "data/CA/index.txt"

How to move files and folders on the computer

move ca.key "data/ca/private/"

Set read-only attribute from command line

attrib +R  "data/ca/private/ca.key"

cmd - How to run multiple .BAT files within a .BAT file - Stack Overflow

call CreateCert.bat %HOSTNAME% %DOT%

Creating and signing an SSL cert with alternative names - ZenCoffee Blog

ssl - Subject Alternative Name is not copied to signed certificate - Stack Overflow

openssl ca -out Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.crt  -config Data\CA\ca.cfg -infiles Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.csr  

Step 10 - Exra code notes

Note 1

openssl.exe genrsa -aes256 -out ca.key 8192

Note 2

cat /data/CA/index.txt

Note 3 - CSR

openssl req -new -nodes -newkey rsa:2048 -keyout mycert.key -out mycsr.csr -days 365

Note 4 - openssl.cfg Must be config before

openssl ca -policy policy_anything -out Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.crt  -config Data\CA\ca.cfg -extensions v3_req -infiles Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.csr  
For /f "tokens=1-4 delims=:" %%a in ("%TIME%") do (IF ["%TIME:~0,1%"] EQU [" "] (set mytime=0%TIME:~1,1%%%b%%c%%d) ELSE (set mytime=%%a%%b%%c%%d))
mkdir Cert_%mytime%
cd Cert_%mytime%
md Data\CA\
PowerShell -Command "(new-object System.Net.WebClient).DownloadFile('https://gist.githubusercontent.com/Elrashid/2ec15e5074e5d2b8736866b829f3792e/raw/ca.cfg','Data\CA\ca.cfg')"
PowerShell -Command "((Get-Content -path Data\CA\ca.cfg -Raw) -replace 'my_dir_absolute_path',((Get-Location).Path -replace '\\','\\')) | Set-Content -Path Data\CA\ca.cfg"
PowerShell -Command "(new-object System.Net.WebClient).DownloadFile('https://gist.githubusercontent.com/Elrashid/2ec15e5074e5d2b8736866b829f3792e/raw/MakeCA.bat','MakeCA.bat')"
PowerShell -Command "(new-object System.Net.WebClient).DownloadFile('https://gist.githubusercontent.com/Elrashid/2ec15e5074e5d2b8736866b829f3792e/raw/MakeCSR.bat','MakeCSR.bat')"
PowerShell -Command "(new-object System.Net.WebClient).DownloadFile('https://gist.githubusercontent.com/Elrashid/2ec15e5074e5d2b8736866b829f3792e/raw/SignCSR.bat','SignCSR.bat')"
PowerShell -Command "(new-object System.Net.WebClient).DownloadFile('https://gist.githubusercontent.com/Elrashid/2ec15e5074e5d2b8736866b829f3792e/raw/Setup.bat','Setup.bat')"
Setup.bat
if not defined HOSTNAME SET HOSTNAME=shop
if not defined DOT SET DOT=org
if not defined OPENSSL_PATH SET OPENSSL_PATH=C:\OpenSSL-Win32\
SET OPENSSL_BIN=%OPENSSL_PATH%bin
SET PATH=%OPENSSL_BIN%;%PATH%
ECHO Start Make.bat> Start.bat
ECHO SET OPENSSL_PATH=%OPENSSL_PATH%> Make.bat
ECHO.>> Make.bat
ECHO SET OPENSSL_BIN=%%OPENSSL_PATH%%bin>> Make.bat
ECHO.>> Make.bat
ECHO SET PATH=%%OPENSSL_BIN%%;%%PATH%%>> Make.bat
ECHO.>> Make.bat
ECHO SET /p DOT="Enter Top Domain(com,org,ner,..): ">> Make.bat
ECHO.>> Make.bat
ECHO SET /p HOSTNAME="Enter Sub Domain(google,doc.google,www.google,..): ">> Make.bat
ECHO.>> Make.bat
ECHO CALL MakeCSR.bat %%HOSTNAME%% %%DOT%% >> Make.bat
ECHO.>> Make.bat
ECHO CALL SignCSR.bat %%HOSTNAME%% %%DOT%% >> Make.bat
CALL MakeCA.bat
CALL MakeCSR.bat %HOSTNAME% %DOT%
CALL SignCSR.bat %HOSTNAME% %DOT%
if not defined HOSTNAME SET HOSTNAME=%1
if not defined DOT SET DOT=%2
openssl ca -batch -out Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.crt -config Data\CA\ca.cfg -infiles Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.csr
openssl pkcs12 -export -in Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.crt -inkey Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.key -out Data\NotCA\%HOSTNAME%.%DOT%\%HOSTNAME%.pfx -passout pass:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment