Last updated on February 9, 2022
You can do this via openssl:
- Install openssl package (if you are using Windows, download binaries here).
- Generate private key:
openssl genrsa 2048 > private.pem
- Generate the self signed certificate:
openssl req -x509 -days 1000 -new -key private.pem -out public.pem
- If needed, create PFX:
openssl pkcs12 -export -in public.pem -inkey private.pem -out mycert.pfx
OpenSSL for Windows
Pre-compiled 64-bit (x64) and 32-bit (x86) 1.1.1 and 3.0 executables and libraries for Microsoft Windows Operating Systems with a dependency on the Microsoft Visual Studio 2015-2019 runtime and Microsoft Visual Studio 2015-2022 runtime respectively.
The distribution may be used standalone or integrated into any Windows application. The distribution’s EXE and DLL files are digitally signed ‘FireDaemon Technologies Limited’.
1 Download ZIP File (Preferred)
Set config in cmd for session
Manually Generating a CA, Certificates and Private Keys
Generate the key and certificates that our test Certificate Authority will use.
The process for creating server and client certificates is very similar.
Encrypt with key and decrypt with key (fun)