mtls

module
v0.0.0-...-5c22041 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2023 License: MIT

README

Run all the command in bash

Generating our rootCA file

  • openssl req -newkey rsa:2048 -nodes -x509 -days 365 -out ca.crt -keyout ca.key -subj "/C=BD/ST=Dhaka/L=Dhaka/O=AppsCode, Inc./CN=AppsCode Root CA"

Generating server certificates

  • openssl genrsa -out server.key 2048
  • openssl req -new -key server.key -out server.csr -subj "/C=BD/ST=Dhaka/L=Dhaka/O=AppsCode, Inc./CN=localhost"
  • openssl x509 -req -extfile <(printf "subjectAltName=DNS:localhost,DNS:localhost") -days 365 -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt

Generating the client certificate

  • openssl genrsa -out client.key 2048
  • openssl req -new -key client.key -out client.csr -subj "/C=FR/ST=Paris/L=Paris/O=Orange, Inc./CN=localhost"
  • openssl x509 -req -extfile <(printf "subjectAltName=DNS:localhost,DNS:localhost") -in client.csr -CA ca.crt -CAkey ca.key -out client.crt -days 365 -sha256 -CAcreateserial

Resource

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL