I am looking to retrieve data from any domain SSL certificate. For example, I want to specify any website address, for example. " /qaru.site / ... " and my code first checks for an SSL certificate. If this happens, I want him to take out the certificate expiration date. [I am reading Domainnames from DB] Example: http://www.digicert.com/help/
I need to create a web service to check the expiration date. how can i implement this? - I looked through a lot of different things, such as RequestCertificateValidationCallback and ClientCertificates, etc. Since I'm new to this, I'm not sure what to do.
I could be completely right (so I need help), but I would create an HTTPWebRequest and then somehow request the client certificate and specific elements in this way?
I tried the example provided when obtaining the @SSL certificate pre-fetch.NET, but I am getting an invalid 403 error.
Any help would be greatly appreciated - Thanks.
This is the code I wrote that throws a 403 forbidden error.
Uri u = new Uri("http://services.efi.com/"); ServicePoint sp = ServicePointManager.FindServicePoint(u); string groupName = Guid.NewGuid().ToString(); HttpWebRequest req = HttpWebRequest.Create(u) as HttpWebRequest; req.Accept = "*/*"; req.ConnectionGroupName = groupName; using (WebResponse resp = req.GetResponse()) {
user166013
source share