update
This commit is contained in:
parent
db640e1a9b
commit
1219f41f99
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
script_dir="$(dirname "$(realpath "$0")")" # 当前脚本所在目录的绝对路径
|
SCRIPT_DIR="$(dirname "$(realpath "$0")")" # 当前脚本所在目录的绝对路径
|
||||||
key_dir=$(readlink -f "$script_dir/../key") # 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
|
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
|
||||||
Loading…
Reference in New Issue
Block a user