A Batch script to assist you convert between different certificate format
Cyber Security July 17, 2021
created this batch script out of the need to automate my team's SSL certificate generation process. I choose batch because we needed a lightweight solution. so no need to remember all the openssl codes anymore.
This script leverages on openssl binary. Openssl is included in this package. for any reason the script fails to find it in its working directory it will download it before starting provided you have an internet connection and you can reach github.com
This script also leverages on openssl.conf file, the file is particularly important if you intent to use the self certification option, the script will as well fetch this config file from its github's repo if it doesn't find it within its working directory.
openssl.exe | openssl.conf
# git clone https://github.com/Johnng007/SSL-HELPER.git
# run SSLHELPER.bat
CONVERTING FROM PEM 1. PEM to DER. 2. PEM to P7B. 3. PEM TO PFX CONVERTING FROM DER 4. DER(.CRT .CER .DER) TO PEM. 5. DER TO CER. CONVERTING FROM P7B 6. P7B TO PEM. 7. P7B TO PFX. 8. P7B TO CER. CONVERTING FROM PFX 9. PFX TO PEM. CONVERTING FROM CER 10. CER TO P7B 11. CER TO PFX 12. CER TO DER GENERATE A SELF SIGNED CERTIFICATE 13. GENERATE SELF SIGNED GENERATE A SELF SIGNED CERTIFICATE AUTO 14. GENERATE SELF SIGNED AUTO
Pull requests are welcome. For major changes, plea open an issue first to discuss what you would like to change. NOTE: you don't need administrator privileges to run the batch file, even in a domain joined PC.
## License MIT
Information and Cyber Security Professional. All thoughts and opinions expressed here are my own, and may not be representative of my employer, or any other entity unless I am specifically quoting someone.