certificate-store

Programmatically verify certificate chain using OpenSSL API

岁酱吖の 提交于 2019-12-17 09:36:10
问题 This is very similar to other questions but the ones I've looked at either don't have an answer or don't quite ask the same question. I have a self-signed CA certificate, and two other certificates that are signed with that CA certificate. I'm fairly sure the certificates are correct, because 'openssl verify' works: $ openssl verify -CAfile ca.pem server.pem server.pem: OK (The above is from memory, I don't have them in front of me, so it may be slightly off). Now I want to verify the

Get list of certificates from the certificate store in C#

半城伤御伤魂 提交于 2019-12-17 09:19:24
问题 For a secure application I need to select a certificate in a dialog. How can I access certificate store or a part of it (e.g. storeLocation="Local Machine" and storeName="My" ) using C# and get a collection of all certificates from there? Thanks in advance for your help. 回答1: X509Store store = new X509Store(StoreName.My, StoreLocation.LocalMachine); store.Open(OpenFlags.ReadOnly); foreach (X509Certificate2 certificate in store.Certificates){ //TODO's } 回答2: Try this: //using System.Security

“Invalid provider type specified” CryptographicException when trying to load private key of certificate

◇◆丶佛笑我妖孽 提交于 2019-12-17 07:16:50
问题 I'm trying to read the private key of a certificate which has been shared with me by a third-party service provider, so I can use it to encrypt some XML before sending it to them over the wire. I'm doing so programmatically in C#, but I think this is a permissions or misconfiguration issue, so I'll focus on the facts which seem to be most relevant: I don't think this issue is code-related; my code works on other computers, and the issue affects sample code from Microsoft. The certificate was

How do I configure Git to trust certificates from the Windows Certificate Store?

爱⌒轻易说出口 提交于 2019-12-13 11:32:33
问题 Currently I have the following entry in my .gitconfig in my user directory. ... [http] sslCAInfo=C:\\Users\\julian.lettner\\.ssh\\git-test.pem ... This sets the certificate to use when interacting with the git server (required by my company's git server). But now I cannot clone other repositories (for example a public repository on GitHub), because the client always uses the configured certificate which gets rejected by other servers. How can I circumvent this certification issue? Can I

Google Chrome Client Certificate Popup

霸气de小男生 提交于 2019-12-12 07:44:24
问题 I'm implementing a mutual authentication for my client in order to solve not having to continually whitelist some of the agencies with a dynamic ip. The process works fine in all browsers that I've tried in the Windows environment (Windows 7). The problem is that there is a popup for every time that the user goes to the site. On most browsers, this is a one time occurrence, when you first go to the site for the day. On Google Chrome, however, the popup occurs on what appears to be every POST

Calling PFXExportCertStoreEx in Go does not return data

前提是你 提交于 2019-12-12 03:26:54
问题 I'm working in Go 1.6 on Windows and trying to export a certificate container to a PFX (the ultimate goal here is to access an exportable private key from the certificate store). I have opened a memory store and inserted a certificate into the store: var storedCertCtx *syscall.CertContext storeHandle, err := syscall.CertOpenStore(syscall.CERT_STORE_PROV_MEMORY, 0, 0, syscall.CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG, 0) err = syscall.CertAddCertificateContextToStore(storeHandle, certenum,

How can I access windows root certificate authorities certificates with Delphi?

浪子不回头ぞ 提交于 2019-12-06 02:44:31
问题 Question related to Lazarus or Delphi. Is there a way to programmatically access trusted Root Certificate Authorities certificates in Windows. I know there is GUI based tool in Windows called 'mmc.exe', but I need to access certificate files (like .crt or .cer or .pem etc.) using Object Pascal syntax. Can anyone help me with that? 回答1: As alternatives, there's CAPICOM which you can simply import as ActiveX type library, but there's also the plain old Windows Cryptography API. As an example,

How can I access windows root certificate authorities certificates with Delphi?

感情迁移 提交于 2019-12-04 08:18:29
Question related to Lazarus or Delphi. Is there a way to programmatically access trusted Root Certificate Authorities certificates in Windows. I know there is GUI based tool in Windows called 'mmc.exe', but I need to access certificate files (like .crt or .cer or .pem etc.) using Object Pascal syntax. Can anyone help me with that? As alternatives, there's CAPICOM which you can simply import as ActiveX type library, but there's also the plain old Windows Cryptography API . As an example, here's a very old test project of mine (I haven't tried it recently). You're going to need the WinCrypt or

Google Chrome Client Certificate Popup

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 23:23:28
I'm implementing a mutual authentication for my client in order to solve not having to continually whitelist some of the agencies with a dynamic ip. The process works fine in all browsers that I've tried in the Windows environment (Windows 7). The problem is that there is a popup for every time that the user goes to the site. On most browsers, this is a one time occurrence, when you first go to the site for the day. On Google Chrome, however, the popup occurs on what appears to be every POST/GET request. I found how to disable the popup for IE and FF with this link: http://docs.threerings.org

Loading a server-side certificate *and* a private key from Windows Server cert store?

[亡魂溺海] 提交于 2019-12-02 04:10:37
问题 I'm trying to get this external REST webservice that requires both a server-side certificate and a private key (both of which I got from the publisher as *.pem files of that service). For my testing, I googled and found a way to combine these two pieces into a *.pfx file - and loading a X509Certificate2 instance from that binary file on disk works just fine. Now I was trying to put this into the Cert Store on my production Windows Server 2008. I can get the X509Certificate2 from the cert