(OPENVPN / OPENSSL)設定ファイルルーチン:STR_COPY:変数に値がありません:conf_def

(OPENVPN / OPENSSL)設定ファイルルーチン:STR_COPY:変数に値がありません:conf_def

新しいキーを生成するために「openssl req」を実行できず、出力にエラーが表示されます。

error on line 39 of /etc/openvpn/openvpn-ssl.cnf
140264035997600:error:0E065068:configuration file routines:STR_COPY:variable has no value:conf_def.c:584:line 39

openvpn-ssl.cnfの39行目の内容は次のとおりです。

dir             = $dir/keys/    # Where everything is kept

観察:この記事を検索して見つけましたが、うまくいきませんでした。 varsファイルがありませんhttps://ubuntuforums.org/showthread.php?t=2218935

ベストアンサー1

同様の問題が解決されました。

スクリプトファイルvarsを変更する必要があります。/etc/openvpn/easy-rsa最後の行のコメントを削除します。

export KEY_CN="CommonName"

varsを実行して./vars
openvpnサーバーを再起動します。

おすすめ記事