- Download and extract this project - _SELF-SIGNED-CERT-SSL.zip
- Have your local web server set up, I recommend Apache via AMPPS stack.
-
Copy the extracted project folder _SELF-SIGNED-CERT-SSL to anywhere in your C drive e.g. -
C:\
- Edit 1-domains.ext
- Add YOUR_HOSTNAME, YOUR_HOST_IP
- Any other hostname or IP, make sure you follow the next number e.g.
DNS.3
orIP.3
.
- Edit 2-genssl.txt (optional)
- Search for
/C=IE/CN=Kingsley Chimezie Creations (KCC)
- edit appropriately with your details - Search for
/C=IE/ST=Leinster/L=Dublin/O=Server/CN=localhost
- edit appropriately with your details
- Search for
- Edit 1-domains.ext
-
Copy all content in 2-genssl.txt (CTRL+A - CTRL+C)
-
Run start.bat found in the project folder OR go to
C:\Program Files\OpenSSL-Win64
and run start.bat from there. -
start.bat will open a Command Prompt terminal window - navigate into the project folder in your C drive from the terminal.
$ cd C:\_SELF-SIGNED-CERT-SSL $ <RIGHT CLICK TO PASTE COPIED CONTENT FROM 2-genssl.txt> $ <PRESS ENTER>
-
You should see generated content in the project folder in your C drive
-
Double click RootCA.crt
- Click "Install certificates..."
- Select "Local Machine" --> click "Next"
- Select "Place all certificates in the following store" --> click "Browse..."
- Select 2nd folder "Trusted Root Certification Authorities" --> click "OK" --> click "Next"
- Click "Finish"
- N.B: To enable SSL on other computers that browser the domains/IPs you added in 1-domains.ext:
- Copy and use the same RootCA.crt to any other computer
- For Windows, just follow the above steps to install the RootCA.crt
- For Mac, add the RootCA.crt in your keychain and enable "always trust"
- In the project folder in your C drive - i.e.
C:\_SELF-SIGNED-CERT-SSL
-
Enable file name extensions.
For Windows 10, at the top of your folder settings: click "view" --> enable "file name extensions" -
Copy the server.crt file
-
Navigate to the folder SSL_LOCATION-WINDOWS-AMPPS and then ssl_crt - Shortcut (C Drive)
If you did not install AMPPS in the default C drive location, go to:<YOUR_AMPPS_LOCATION>\apache\conf\ssl_crt
- change server.crt to server.crt.bak
- paste the copied server.crt file
-
Go back to the project folder in your C drive - i.e.
C:\_SELF-SIGNED-CERT-SSL
-
Copy the server.key file
-
Navigate to the folder SSL_LOCATION-WINDOWS-AMPPS and then ssl_key - Shortcut (C Drive)
If you did not install AMPPS in the default C drive location, go to:<YOUR_AMPPS_LOCATION>\apache\conf\ssl_key
- change server.key to server.key.bak
- paste the copied server.key file
-
Start or Restart AMPPS
-
Browse any of the domains you set in 1-domains.ext using HTTPS - e.g. https://localhost or https://127.0.0.1
...
© 2022 Kingsley Chimezie | Kingsley Chimezie Creations