自分で作成したSSL証明書を使用してIISでFTPサーバーをセットアップしました( Makecert.exeとPvk2Pfxを使用)。PFXファイルをFTPサーバーに帰属させました。
FTPサーバーに接続するC#スクリプトがあり、常に次のエラーメッセージが表示されます。
System.Security.Authentication.AuthenticationException:検証手順に従って、リモート証明書が無効です。
ローカルコンピューターとユーザーの「信頼されたルート証明機関」に証明書をインストールしました。
認証されないため、ストアのC#で確認しました。
X509Store store = new X509Store(StoreName.AuthRoot, StoreLocation.LocalMachine);
store.Open(OpenFlags.ReadOnly | OpenFlags.OpenExistingOnly);
foreach (X509Certificate2 mCert in store.Certificates)
{
var friendlyName = mCert.Issuer;
Console.WriteLine(friendlyName);
}
store.Close();
しかし、私の証明書はリストされていません。MMCコンソールを開くと、証明書が表示されます。