Skip to content

Instantly share code, notes, and snippets.

View linxi-1214's full-sized avatar

林夕 linxi-1214

View GitHub Profile
@linxi-1214
linxi-1214 / make_cert.md
Created April 19, 2024 03:03 — forked from liuguangw/make_cert.md
使用openssl制作自定义CA、自签名ssl证书

自签名ssl证书生成

生成CA私钥

# 创建文件夹 ca 保存Ca相关
mkdir ca
cd ca
#创建私钥 (建议设置密码)
openssl genrsa -des3 -out myCA.key 2048
@linxi-1214
linxi-1214 / client.go
Created April 9, 2024 07:30 — forked from spikebike/client.go
TLS server and client
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"io"
"log"
)