This commit is contained in:
vincent 2024-05-15 20:23:48 +08:00
parent a3ffd7b3fa
commit 962800b786

View File

@ -1,6 +1,6 @@
#!/bin/bash
script_dir="$(dirname "$(realpath "$0")")" # 当前脚本所在目录的绝对路径
key_dir="$script_dir/../key"
key_dir=$(readlink -f "$script_dir/../key") # key目录绝对路径
openssl req -x509 -nodes -newkey ec:<(openssl ecparam -name prime256v1) -keyout "$key_dir/server.key" -out "$key_dir/server.crt" -subj "/CN=bing.com" -days 36500