x509certificate2

How to change issuer Name while creating X509Certificate2 in C#

烂漫一生 提交于 2021-01-27 07:30:17
问题 I am working with creating X509Certificate2 certificate in my C#.net application. While creating certificate, how to set the issuer name? currently issuer name shows same as subject name. Please help. 回答1: Hmm. Finally I have used Bouncy Castle dll to create certificates.Using this, there is a method to set issuer name. This is the fully code to generate x509Certificate and to store into Trusted People store: private X509Certificate2 GeneratePFXFile(string certificate,string company,string

X509Certificate2 constructor throwing Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException: There is not enough space on the disk

巧了我就是萌 提交于 2020-12-12 10:18:21
问题 I am running into a similar issue that is described here. This is a .NET Core 3.1 App running as a Azure WebJob in Azure App Service. Based on the discussion in the above link, I assume this is an issue with file counts in a directory, I am having trouble figuring out which directory is getting full. The environments page on the Kudu portal shows this, basically doesn't seem to be a overall disk space issue- D:\home usage: 57,344 MB total; 56,795 MB free d:\local usage: 11,264 MB total; 10

X509Certificate2 constructor throwing Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException: There is not enough space on the disk

安稳与你 提交于 2020-12-12 10:15:29
问题 I am running into a similar issue that is described here. This is a .NET Core 3.1 App running as a Azure WebJob in Azure App Service. Based on the discussion in the above link, I assume this is an issue with file counts in a directory, I am having trouble figuring out which directory is getting full. The environments page on the Kudu portal shows this, basically doesn't seem to be a overall disk space issue- D:\home usage: 57,344 MB total; 56,795 MB free d:\local usage: 11,264 MB total; 10

WCF in asp.net core 2.0 - Could not establish trust relationship for the SSL/TLS secure channel with authority

北城余情 提交于 2020-07-19 11:29:07
问题 Previously I had an application targeting framework 4.5.1 and used Web Reference to add a WCF service. This works perfectly and was able to authenticate successfully with the server. old code: ServicePointManager.Expect100Continue = false; ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; IService orderService = new Service(); // private method to load certificate var cert = LoadCertificate(@"....\00050._.1.p12", "pwd"); oIPGApiOrderService.ClientCertificates.Add(cert);