Filezilla X509 certificate not loaded by X509Certificate C# class
Posted: 2018-05-01 19:20
Hi,
(I've posted the question on MSDN too :
https://social.msdn.microsoft.com/Forum ... arpgeneral)
I've generated a certificate throw FileZilla FTP Server interface latest version (tried with both 1024 & 2048 bits).
But during .CER file load, an exception is thrown during call to CreateFromCertFile() :
'System.Security.Cryptography.CryptographicException' - "Impossible de trouver l'objet requis".
string filename = @"D:\certificate.cer";
if (File.Exists(filename))
{
try
{
X509Certificate cert = X509Certificate.CreateFromCertFile(filename);
}
catch (Exception e)
{
Console.WriteLine(e.ToString());
}
}
Does someone knows about it ?
Thanks,
Vincent
(I've posted the question on MSDN too :
https://social.msdn.microsoft.com/Forum ... arpgeneral)
I've generated a certificate throw FileZilla FTP Server interface latest version (tried with both 1024 & 2048 bits).
But during .CER file load, an exception is thrown during call to CreateFromCertFile() :
'System.Security.Cryptography.CryptographicException' - "Impossible de trouver l'objet requis".
string filename = @"D:\certificate.cer";
if (File.Exists(filename))
{
try
{
X509Certificate cert = X509Certificate.CreateFromCertFile(filename);
}
catch (Exception e)
{
Console.WriteLine(e.ToString());
}
}
Does someone knows about it ?
Thanks,
Vincent