Skip to content

GovTechSG/batch-gen-csr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

APEX L2 Certificate Generation Scripts

Generate the CSR

  1. Execute git command to get the scripts files
git clone https://github.com/GovTechSG/batch-gen-csr.git
  1. Duplicate parameters.config with a new file name and update with new configuration.
cp parameters.config <fileName>.config
  1. Inside .config, modify all the required parameters on the right column
fileName=<change this and the rest>
.
.
p12Password=<change and remember this for next step>
.
.
more ...
  1. Execute generateCsr.sh will generate the private key and certificate signing request
./generateCsr.sh <fileName>.config
  1. The following files will be generated;
    • fileName.key
    • fileName.nopass.key
    • fileName.pkcs8.key
    • fileName.pkcs8.nopass.key
    • fileName.public.key
    • fileName.csr

Upload the CSR to APEX for Signing

  1. Upload the CSR to APEX App.
  2. Download the Signed Certificate from APEX and save as:
<fileName>.cer
  1. Copy the file to the same folder of the csr file (this project folder)
  2. Execute generateP12.sh will generate the keystore in P12,PEM and JKS format
./generateP12.sh <fileName>.config
  1. The following files will be generated;
    • fileName.public.pem
    • fileName.p12
    • fileName.private.pem
    • fileName.nopass.pem
    • fileName.jks
  2. Use those keystore files (.pem, .p12, .jks generated for Test Client or your client program to consume)

About

Generating CSR for L2 Security

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages