Create a Local key and Sign in with Root Certificate

Create a Local key and Sign in with Root Certificate

  1. Execute the following code:
    openssl req -new -nodes -out localhost.csr -newkey rsa:4096 -keyout localhost.key
  2. Enter the fields value of your choice.
    However; the common name must be
    Localhost
    .
  3. Copy and save the following code by the name "localhost.v3.ext".
    AuthorityKeyIdentifier=keyid,issuer basicConstraints=CA:FALSE keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment subjectAltName = @alt_names [alt_names] DNS.1 = localhost IP.1 = 127.0.0.1
    openssl x509 -req -in localhost.csr -CA root.crt -CAkey root.key -CAcreateserial -out localhost.crt -days 730 -sha256 -extfile localhost.v3.ext