Script to create Self-Signed CA and Server Certificate using the CA

Here is a quick “Modify and Run” script to create:

  1. A Self-Signed CA Certificate and Key
  2. A PFX (PKCS12) bundle of the Self-Signed CA + CA Key.
  3. A Server Key and Certificate with 2 SANs signed by the above CA.
  4. A PFX bundle for the Server Cert.

Script to create Self-Signed CA and Server Cert (using the CA) (github.com)