crypt32

.NET application very slow to start - cryptnet.dll trying to access IP in Bermuda

I've built a .NET console application which worked fine for several years. Since November 23, it takes a huge amount of time to start (15 seconds) when run in production (it works fine when run from Visual Studio). I've tried to trace back what is going on with Process Monitor (ProcMon) and I've found this pattern: App starts normally...

PInvoke - crypt32.dll - CertStrToName and CertCreateSelfSignCertificate - how to set the issuer name and password

We currently use self-signed server certificates in our Windows-to-WCF application. The certificates are created with the following commands in a batch file: makecert -sv CERTNAME.pvk -n "CN=SUBJECTNAME" CERTNAME.cer -sky exchange cert2spc CERTNAME.cer CERTNAME.spc pvk2pfx -pvk CERTNAME.pvk -spc CERTNAME.spc -pfx CERTNAME.pfx I have b...

Using Crypt32 with Dev-Cpp - Unable to link to CryptUnprotectData

Original Question While trying to compile the example code from 'Example C Program: Using CryptProtectData' I ran into a roadblock; The linker cannot find CryptUnprotectData. Here is the console output: Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\test\Makefile.win" Executing make... make.exe -f "C:\Dev-Cpp\test\Makefile...