I am trying to generate an X509Certificate2 object using the Microsoft AES Cryptographic Provider: > CALG_AES_256 (0x00006610) 256 bit AES. This algorithm is supported by the > Microsoft AES Cryptographic Provider. My problem is that my call to CryptGenKey(providerContext, 0x6610, 0x4000001, out cryptKey) fails with the following error: > An [...] read more
How do I get the Microsoft's CryptoAPI CryptImportKey function to import a PEM encoded key? It actually works but CryptDecrypt returns an error. // 1. Generate a Public/Private RSA key pair like so: openssl genrsa -out private.pem 2048 openssl rsa -in private.pem -out public.pem -outform PEM -pubout // 2. Create [...] read more
I have a 2012 R2 server for CRM that I can no longer RDP into. The error I get is "This computer can't connect to the remote computer." In the event logs, I see 2 events that seem relevant. Event 1057: The RD Session Host Server has failed to create [...] read more
I have Gemalto.NET Smart Card. I imported 2 certificates into it using Gemalto tools, which use sconnect (which as I suspect use Crypto API to do it when used in IE). When I run certutil -key -csp "Microsoft Base Smart Card Crypto Provider" I have following result > Microsoft Base [...] read more
I've written a script that'll create certificates for me and that should sign them all using another certificate. $dnsNames = @("example.com", "example.org") New-SelfSignedCertificate -CertStoreLocation Cert:\LocalMachine\My -DnsName $dnsNames -FriendlyName "Example Cert" -Signer Cert:\LocalMachine\Root\QWREEWRQ12123132QWEQWE123123 But when I run this script I get the error message CertEnroll::CSignerCertificate::Initialize: Key does not exist. 0x8009000d (-2146893811 [...] read more