Skip to content

Instantly share code, notes, and snippets.

# OpenSSL Intermediate CA configuration file.
# Copy to `./root/intermediate.cnf`.
[ ca ]
# `man ca`
default_ca = CA_default
[ CA_default ]
# Directory and file locations.
dir = ./intermediate
# OpenSSL root CA configuration file.
# Copy to `./root/openssl.cnf`.
[ ca ]
# `man ca`
default_ca = CA_default
[ CA_default ]
# Directory and file locations.
dir = ./root
@KaiserWerk
KaiserWerk / auto-cert-reload.go
Last active December 27, 2023 06:09
Golang: Automatic TLS Certificate Reload
package main
import (
"crypto/tls"
"fmt"
"io"
"net/http"
)
func main() {
@liuguangw
liuguangw / make_cert.md
Last active September 17, 2024 04:57
使用openssl制作自定义CA、自签名ssl证书

自签名ssl证书生成

生成CA私钥

# 创建文件夹 ca 保存Ca相关
mkdir ca
cd ca
#创建私钥 (建议设置密码)
openssl genrsa -des3 -out myCA.key 2048