💻 Make self-signed openssl certificates with ease on Windows OS!
This project is based on a gist by Vikas Kapadiya @vikas5914
Using this file (makecert.bat) you can create a custom self-signed ssl certificates with ease.
- Provide your own meta-data fields.
- If you dont want to provide your own info, you can use the default values just by pressing enter.
- Info preview before actual ssl certs generation.
- If you dont approve the previewed info to be used, you can enter new info again.
- Confirmation to generate your ssl certs.
- Provide secondary fields (Country, State, Email etc.) in a single config file. (v2.0.0)
v2.0.0:
- Added support to set the Country, State, City, Organization, Organization Unit, Email in a config file.
- Added support to use the config file for providing the above mentioned fields.
- Command help added.
- Functionality for generating
.key
and.crt
files without.cnf
file added.
Download the makecert.bat file to your desired folder and add it to the system path.
Sign out if required.
Use it from anywhere!
--no-cfg or -n: Use this option if you dont want .cnf
file to be outputted.
--set-config or -s: Use this option to populate the config fields interactively.
The config file is stored at %USERPROFILE%\makecert-config.ini
The makecert-config.ini example:
COUNTRY=IN
STATE=MH
CITY=Mumbai
ORGANIZATION=example.com
ORGANIZATION_UNIT=Backend
EMAIL=administrator@example.com
The given config file does not exist out of the box. You have to generate it using this option.
--use-config or -c: Using this option you will have to provide the hostname and domain extension only. All the other data is grabbed from the config file.
--open-repo or -o: Open the project github repository in your browser.
--help or -h: Display the help regarding the options used.
NOTE: The info to be provided must not contain any blank-space ( ), use hyphen (-) or underscore (_) instead!
NOTE: This project assumes that the openssl is available on your system.
👍