1

認証に証明書を使用できるテスト ラボをセットアップしようとしています。私は debian スクイーズ、グラスフィッシュ、openssl を使用しています。

クライアント証明書を作成してデータベースに保存しようとすると、次のエラーが表示されます。

1 out of 1 certificate request certified, commit? [y/n]y

write out database with 1 new entries

unable to rename ./demoCA/index.txt to ./demoCA/index.txt.old

reason: is a directory

自己署名 CA 証明書を作成したときは正常に機能していましたが、現在は機能しません。インターネット上で何も見つからないので、明らかなことを見逃しています。したがって、これを解決するためのガイダンスは大歓迎です。

よろしくマリ

4

1 に答える 1

1

あなたのls -al

total 44 drwxr-xr-x 4 root root 4096 Feb 27 16:30 . 
drwxr-xr-x 5 root root 4096 Feb 27 16:25 .. 
-rw-r--r-- 1 root root 3 Feb 27 12:39 crlnumber 
-rw-r--r-- 1 root root 52 Feb 27 14:30 index.txt 
-rw-r--r-- 1 root root 21 Feb 27 16:30 index.txt.attr 
-rw-r--r-- 1 root root 20 Feb 27 16:30 index.txt.attr.new 
-rw-r--r-- 1 root root 110 Feb 27 16:30 index.txt.new 
drwxr-xr-x 2 root root 4096 Feb 27 12:38 index.txt.old 
drwxr-xr-x 2 root root 4096 Feb 27 16:30 newcerts 
-rw-r--r-- 1 root root 3 Feb 27 16:30 serial -rw-r--r-- 
1 root root 3 Feb 27 16:16 serial.old 

index.txt.old実際にはディレクトリです。dのおかげでわかりますdrwxr-xr-x。あなたが使用しているものすべてについてはわかりませんが、これをバックアップしてみるmv index.txt.old index.txt.old.backupと、正しく動作するはずです。

于 2013-02-28T02:13:16.603 に答える