LoginSignup
11
8

More than 5 years have passed since last update.

「TXT_DB error number 2」エラーの対処法

Posted at

VPNサーバ側の秘密鍵証明書発行時

# ./build-key-server サーバ名
・・・・・・・・・・・・
・・・・・・・・・・・・
・・・・省略・・・・
・・・・・・・・・・・・
・・・・・・・・・・・・
Sign the certificate? [y/n]:y
failed to update database
TXT_DB error number 2

上記のようなエラーが出た時の対処法

証明書用ディレクトリを作成したディレクトリの中にあるkeysディレクトリの中のindex.txtを削除して新しく作り直す

# rm /etc/openvpn/easy-rsa/keys/index.txt
# touch /etc/openvpn/easy-rsa/keys/index.txt

再度、VPNサーバ側の秘密鍵証明書発行
# ./build-key-server サーバ名

※あくまでメモとして書いてますので、間違っている箇所もあると思います。

11
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
8