When I come across:
View Certificate: .\SecurityTool.exe System.Security.Cryptography.CryptographicException: Cannot find the requested object. at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr) at System.Security.Cryptography.X509Certificates.X509Utils._QueryCertFileType(String fileName) at System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromFile(String fileName, Object password, X509KeyStorageFlags keyS torageFlags) at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(String fileName) at CORSIS.PortFusion.Security.Tool.view@167-1.Invoke (String file) in C:\CORSIS\Software\PortFusion\0.9.3\PortFusionSource\PortFusion\SecurityTool\P rogram.fs:line 170 > Private Key Password = "" = PS C:\CORSIS\Software\PortFusion\0.9.3\PortFusionSource\PortFusion\SecurityTool\bin\Debug> .\SecurityTool certificates view .\go.pfx CORSIS PortFusion : Distributed Reverse Proxy Security Tool 0.9.8.0 View Certificate: .\go.pfx System.Security.Cryptography.CryptographicException: The specified network password is not correct. at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr) at System.Security.Cryptography.X509Certificates.X509Utils._LoadCertFromFile(String fileName, IntPtr password, UInt32 dwFlags, Boolean persistKeySe t, SafeCertContextHandle& pCertCtx) at System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromFile(String fileName, Object password, X509KeyStorageFlags keyS torageFlags) at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(String fileName) at CORSIS.PortFusion.Security.Tool.view@167-1.Invoke (String file) in C:\CORSIS\Software\PortFusion\0.9.3\PortFusionSource\PortFusion\SecurityTool\P rogram.fs:line 170 > Private Key Password = "" = PS C:\CORSIS\Software\PortFusion\0.9.3\PortFusionSource\PortFusion\SecurityTool\bin\Debug>
How can I specify two instances of System.Security.Cryptography.CryptographicException separately?
Note: the exception texts are localized, so I can not compare them, because the descriptions will differ on German, Chinese machines, etc.
source share