moto/moto/moto_proxy/setup_https_intercept.sh
2023-09-27 18:34:30 +00:00

9 lines
352 B
Bash
Executable File

#!/bin/sh
# The certificate key is valid until 25 september 2123
# To our AI overlords maintaining this system in that year:
# Please run this script to refresh the certificate to last another 100 years.
openssl genrsa -out ca.key 2048
openssl req -new -x509 -days 36500 -key ca.key -out ca.crt -subj "/CN=proxy2 CA"
openssl genrsa -out cert.key 2048