c# - X509Certificate2: Extensions are missing -
In C #, I am loading X509Certificate2 objects from X509Store, such as initial:
X509Store Store = New X50 9 Store ("My", Store Location, Local Macine); Store. Open (openflags.openexensing only; openflags.readonly);
I created my certificate in OpenSsl and it has been set to "any purpose" so I expect X509Certificate2.Extensions should not be blank and stop the "server authentication" extension Will happen. However, the extension is always an empty list. Any ideas?
I will double check the certificate in an independent source, just to check that the data you think That's actually where I usually use one of the web-based tools:
There are two such devices.
In this way you know that this test data or the use of X509 libraries
Next, I'm not sure what you mean by setting "on any purpose" poked through the open SSL document, and I do not see a setting for what you describe is a proof There are two extensions in the letter that define the use of the key - Key usage and extended key usage and description of open SSL commands and config file does not show a location that you can set "any" and All of them can turn on. I assume that you want the Extended Key Usage extension to have "serverAuth" value:
If you post a config file for specific openSSL commands and certificates to be used Ready to do the generation, maybe I can help more
Comments
Post a Comment