Skip to content

somanchiu/generate-self-signed-certificate

Repository files navigation

Steps

  1. It is recommended to set your system clock to 1993/01/01 00:00:00 before generating any certificates to avoid the error ERR_CERT_VALIDITY_TOO_LONG.
  2. Execute "Step1-generate ca certificate.bat". Once the CA certificate has been generated, there is no need to generate it again.
  3. Modify the values of "commonName" and "subjectAltName" in "server.cnf", then execute "Step2-generate server certificate.bat"
  4. Trust "ca.crt" on your device, and deploy "ca.crt", "server.crt", "server.key" to your server.

About

No more ERR_CERT_AUTHORITY_INVALID, ERR_CERT_COMMON_NAME_INVALID, and ERR_CERT_VALIDITY_TOO_LONG

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published