mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-12-04 20:47:25 +00:00
9 lines
476 B
Bash
Executable File
9 lines
476 B
Bash
Executable File
#!/bin/sh
|
|
|
|
openssl genrsa -out client.key 2048
|
|
openssl req -key client.key -new -out client.req
|
|
openssl x509 -req -days 365 -in client.req -signkey client.key -out client.crt -extfile client.cnf -extensions ssl_client
|
|
openssl x509 -req -days 1000 -in client.req -CA ~/.mitmproxy/mitmproxy-ca.pem -CAkey ~/.mitmproxy/mitmproxy-ca.pem -set_serial 00001 -out client.crt -extensions ssl_client
|
|
cat client.key client.crt > 127.0.0.1.pem
|
|
openssl x509 -text -noout -in 127.0.0.1.pem
|