- Execute git command to get the scripts files
git clone https://github.com/GovTechSG/batch-gen-csr.git
- Duplicate parameters.config with a new file name and update with new configuration.
cp parameters.config <fileName>.config
- 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 ...
- Execute generateCsr.sh will generate the private key and certificate signing request
./generateCsr.sh <fileName>.config
- 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 App.
- Download the Signed Certificate from APEX and save as:
<fileName>.cer
- Copy the file to the same folder of the csr file (this project folder)
- Execute generateP12.sh will generate the keystore in P12,PEM and JKS format
./generateP12.sh <fileName>.config
- The following files will be generated;
- fileName.public.pem
- fileName.p12
- fileName.private.pem
- fileName.nopass.pem
- fileName.jks
- Use those keystore files (.pem, .p12, .jks generated for Test Client or your client program to consume)