Decrypt my World
learn.microsoft.com/en-us/archive/blogs/alejacma
Cryptography, Security, Debugging and more!
SecurityWindows internalsC# / .NETMicrosoft blogsMSDN archive
- Posts
- 212 from 1 Oct 2007 to 25 Sep 2024
- Posting
- archived, read-only
- Kind
- personal blog
- Feed
- https://learn.microsoft.com/en-us/archive/blogs/alejacma/feed.xml
2024 1
2012 10
- Good bye Escalation Engineer, Hello Developer Evangelist
- How to enumerate all certificates on a smart card (PowerShell)
- Would you like a free code sample from Microsoft?
- ExportParameters returns Invalid type specified error
- Big delay while calling EnvelopedCms constructor
- More on .NET CMS classes and SHA-2 algorithms
- How to call CryptMsg API in streaming mode - LargeCMS full sample
- Process created with CreateProcessAsUser won't initialize properly
- How to get the sAMAccountName of a foreign security principal (C#)
- EnvelopedCMS throws an "ASN1 out of memory" exception with files larger than 5 MB
2011 31
- Unable to import a key into KeyNumber.Signature with RSACryptoServiceProvider
- Big delay when calling X509Certificate2 constructor
- How to verify validity of certificates with .NET
- X509Certificate2 raises "The Smart card resource manager is not running" exception
- SCardEstablishContext fails with SCARD_E_NO_SERVICE error
- How to automate a command line utility like DiskPart (vbscript)
- SignTool fails with error 0x80092006 on Windows Server 2008
- How to update "Run only specified windows applications" GPO programmatically (VBScript)
- FileSystemWatcher class does not fire Change events when NotifyFilters.Size is used
- How to disable "This Web site is attempting to perform a digital certificate operation on your behalf" message
- How to disable the pop up that Windows shows when an app crashes
- How to verify signatures using a temporary keyset in .NET
- SChannel does not support SSL Fragmentation
- Big delay when calling SslStream.AuthenticateAsClient
- How to create a memory mapped file with C# (Windows Vista / Windows 7)
- How to customize error messages shown when changing password on Windows 7
- How to request a certificate programmatically using the Certificate Enrollment Web Services (C#)
- How to add Alternative Directory Name to your certificate request (C#)
- How to add Subject Alternative Name to your certificate requests (C#)
- Certificate request doesn't allow the private key of the enrolled certificate to be exported
- How to add Friendly Name to your enrolled certificates programmatically
- Certificate request won't set Key Usage to Digital Signature in enrolled certificate
- How to access Certificate Enrollment Web Services from non-domain joined computers
- How to use INTERNET_OPTION_SERVER_CERT_CHAIN_CONTEXT with InternetQueryOption in C#
- We can't manage printers with WMI in a clustered environment
- Unexpected black screen when using a custom Credential Provider
- Problems when compiling and running code that uses CertEnroll with .NET 4.0 and x64
- How to add Issuer Alternative Name to your certificate request (C#)
- How to export our enrolled certificates programmatically
- CreateProcessAsUser fails with error 5 (Access Denied) when using Jobs
- Why is my process in a Job if I didn't put it there?
2010 44
- How to get info from client certificates issued by a CA (C#, VS 2010)
- How to export issued certificates from a CA programatically (PowerShell)
- How to export issued certificates from a CA programatically (C#)
- How to install the response from a CA programmatically (PowerShell)
- How to get all certificates in the Server Certificates section of IIS Manager programmatically (PowerShell)
- How to remove a certificate from a certificate store programmatically (PowerShell)
- Get-WmiObject : The type initializer for 'System.Management.MTAHelper' threw an exception
- System.DirectoryServices.AccountManagement.UserPrincipal.IsMemberOf returns false negatives
- Global hooks getting lost on Windows 7
- How does CryptoAPI order the certificates in the stores?
- How to read msTSProfilePath, msTSHomeDrive and msTSHomeDirectory properties from AD (VB.NET)
- How to access the new Certificate Enrollment Web Services programmatically
- .NET and the CAdES standard
- Creating signatures with SignedXML following ebXML standard
- X.509 chain validation without CRL (C#)
- Which standards does SignedXml support?
- "NotTimeNested" not detected when doing chain validation
- How to publish a printer in Active Directory (C#)
- P/Invoking CryptoAPI in .NET. Part 2 (C#)
- How to call CryptEncodeObject in .NET (C#)
- I'm on Twitter now!
- How to request an smartcard logon cert programmatically (C#)
- CryptoAPI and 5 bytes exponent public keys
- "Invalid provider type specified" when using CNG providers with .NET CMS classes
- "An internal error ocurred" when using AES algorithms with EnvelopedCms
- "An internal error ocurred" when using SHA-2 algorithms with SignedCMS
- CertEnroll control won't work when hosted inside a frame/iframe in IE8 (FIX)
- Invalid algorithm specified when signing with RSACryptoServiceProvider and SHA 256
- CertEnroll control won't work when hosted inside a frame/iframe in IE8
- How to get info from client certificates issued by a CA (C#)
- How to get the AD groups a user is member of (ASP)
- SetWindowsHookEx fails with error ERROR_MOD_NOT_FOUND
- How to call CryptMsg API in streaming mode (C#)
- ERROR_INVALID_DATA decrypting keyMaterial info from WiFi profile
- "ASN1 value too large" error when calling SignedCms.ComputeSignature
- SendInput doesn't work but it doesn't return an error
- How to change drive letters (VBScript)
- SignerSignEx returns error 0x80070020
- SignerSignEx returns error 0x800b0003
- How to get all DCs in a Forest (VBScript)
- How to set sound volume programmatically
- How to change ownership and give full permissions to a user on a folder (VBScript)
- Do CNG certificates work on Windows XP?
- WinHttpCertCfg tool cannot access private key of a certificate
2009 57
- "Invalid provider type specified" error when accessing X509Certificate2.PrivateKey on CNG certificates
- Does SignTool work on Windows 7?
- x64 version of SignTool?
- x64 version of CAPICOM?
- 2.1.0.3, a new CAPICOM version?
- HttpWebClientProtocol.ClientCertificates and PFX files
- How to manipulate REG_MULTI_SZ values from the registry (C++)
- Access Violation exception when loading a certificate in .NET (Windows Server 2003)
- CAPICOM support on Windows 7
- Working with CNG in .NET 3.5
- CryptographicException: The data to be decrypted exceeds the maximum for this modulus of 0 bytes
- X509Certificate creates temporary files which are never deleted
- How to timestamp Authenticode signatures when our proxy requires authentication
- MANAGED DEBUGGING with WINDBG. Locks
- MANAGED DEBUGGING with WINDBG. Breaking on an Exception. Part 2
- SubAuthentication package gets Zero LogonId
- MANAGED DEBUGGING with WINDBG. Breaking on an Exception. Part 1
- MANAGED DEBUGGING with WINDBG. Managed Heap. Part 5
- MANAGED DEBUGGING with WINDBG. Managed Heap. Part 4
- MANAGED DEBUGGING with WINDBG. Managed Heap. Part 3
- MANAGED DEBUGGING with WINDBG. Managed Heap. Part 2
- MANAGED DEBUGGING with WINDBG. Managed Heap. Part 1
- Controls won't get resized once the nesting hierarchy of windows exceeds a certain depth (x64)
- MANAGED DEBUGGING with WINDBG. Thread Stacks. Part 2
- MANAGED DEBUGGING with WINDBG. Thread Stacks. Part 1
- MANAGED DEBUGGING with WINDBG. Threads. Part 2
- MANAGED DEBUGGING with WINDBG. Threads. Part 1
- MANAGED DEBUGGING with WINDBG. Call Stacks. Part 3
- MANAGED DEBUGGING with WINDBG. Call Stacks. Part 2
- MANAGED DEBUGGING with WINDBG. Call Stacks. Part 1
- MANAGED DEBUGGING with WINDBG. Setting a Breakpoint. Part 3
- MANAGED DEBUGGING with WINDBG. Setting a Breakpoint. Part 2
- MANAGED DEBUGGING with WINDBG. Setting a Breakpoint. Part 1
- MANAGED DEBUGGING with WINDBG. Preparing the Environment
- MANAGED DEBUGGING with WINDBG. Help
- MANAGED DEBUGGING with WINDBG. Prerequisites
- MANAGED DEBUGGING with WINDBG. Introduction and Index
- SOS Cheat Sheet (.NET 2.0/3.0/3.5)
- How to call InternetErrorDlg to deal with certificate issues on SSL connections (C#)
- CertEnroll::CX509Enrollment::p_CreateRequest returns error 0x8009000b
- CertEnroll::CX509Enrollment::p_CreateRequest returns error 0x80092012
- CertEnroll::CX509Enrollment::p_CreateRequest returns error 0x800b0112
- CertEnroll::CX509Enrollment::p_CreateRequest returns error 0x80070057
- CertEnroll::CX509Enrollment::p_InstallResponse returns error 0x80095002
- How to create a certificate request that uses key archival with CertEnroll (JavaScript)
- NdrClientCall2 fails with RPC_S_ALREADY_LISTENING when using pipes over ncalrpc
- Default Provider Type for CspParameters has changed
- Do you need help right now?
- How to get information from a CRL (.NET)
- How to create a self-signed certificate with CryptoAPI (C++)
- How to get LastLogon property for all users in a Domain (VBScript)
- How to create a certificate request with CertEnroll (ASP)
- CryptUIDlgViewCertificate installs a CA certificate without my consent
- How to view a certificate programatically (C#)
- CRL gets cached after we do an Online verification with X509Chain
- How to create a certificate request with CertEnroll (JavaScript)
- SHA-2 support on Windows XP
2008 55
- RSACryptoServiceProvider fails if we delete a user from the machine
- CryptSignHash fails with NTE_BAD_KEYSET
- How to sign EXE files with an Authenticode certificate (part 2)
- How to change Windows Theme programmatically in XP
- How to change Windows Change Password dialog to reflect our custom password policy
- How to clean up expired certs on your smart card
- RSACryptoServiceProvider.Encrypt returns "Key not valid for use in specified state" error
- How to generate key pairs, encrypt and decrypt data with .NET (C#)
- Something has changed in my life
- How to get assembly version without loading it
- How to create a certificate request with CertEnroll and .NET (C#)
- FileNotFoundException when using XEnroll in ASP.NET
- How to debug Windows services with Windbg
- How to get more than 1000 group members including foreign SAMs (VBScript)
- How to modify an Interop assembly to change the return type of a method (VB.NET)
- CryptographicException: Unable to open the access token of the current thread
- How to use DHeapMon.exe to troubleshoot Desktop Heap issues
- How to use Windbg to debug a dump of a 32bit .NET app running on a x64 machine
- Threading issues with RSACryptoServiceProvider
- Threading issues with CryptoAPI
- Security Warning dialog box is displayed when you try to silently install a hotfix or an update
- How to Sign and Verify the signature with .NET and a certificate (C#)
- System.DirectoryServices.DirectorySynchronization returns access denied with non-admin users
- WMI Diag won't work well in non-English Windows
- How to verify if password meets complexity requirements programmatically
- Don't use default key containers if possible
- CryptAcquireContext fails with NTE_BAD_KEYSET
- Who has access to a folder? (C#)
- CryptAcquireContext fails with ERROR_FILE_NOT_FOUND
- How to read certificate extensions with CAPICOM (C#)
- How to get Antivirus information with WMI (VBScript)
- ChangePassword method may fail with TargetInvocationException (.NET)
- How to get a list of all users in an OU (VBScript)
- DpapiProtectedConfigurationProvider fails while decrypting web.config (ASP.NET)
- Certificate has private key but we get "the keyset does not exist" error
- How to read a registry key and its values (VBScript)
- Win32_Process.Create fails if user profile is not loaded
- How to Encrypt and Decrypt with CryptoAPI and a user Certificate (Windows Mobile)
- How to get ADs Providers list (C#)
- How to get Password Expiration Date with System.DirectoryServices (C#)
- CAPICOM Security Alerts are not localized
- How to change the Security Descriptor of WMI objects
- How to change Registry Permissions with RegIni.exe (VBScript)
- How to get the user running a VBScript
- CAPICOM support on Windows Server 2008
- PKCS#11 interface support on Windows 2000/Server 2003
- How to get the logged on user with WMI (VBScript)
- How to select which Smart Card reader to perform actions on
- How to sign a message and verify a message signature (C#)
- How to sign EXE files with an Authenticode certificate (VB.NET)
- How to sign an XML and verify the signature with .NET (VB.NET)
- How to import a certificate without user interaction (C++ & C#)
- How to generate key pairs, encrypt and decrypt data with CryptoAPI
- How to sign and verify with CryptoAPI and a user certificate
- How To Host an NT Service on svchost.exe
2007 14
- How to call CreateProcessWithLogonW & CreateProcessAsUser in .NET
- SCardGetStatusChange fails with SCARD_E_NO_SERVICE error
- Key Containers: Basics
- Smart Card's PIN gets cached
- XmlDsigC14NTransform normalization behavior depends on input type
- RSACryptoServiceProvider fails when used with ASP.NET
- P/Invoking CryptoAPI in .NET (VB.NET version)
- P/Invoking CryptoAPI in .NET (C# version)
- How to debug LSASS.exe process
- How to trace CryptoAPI calls (2)
- CryptoAPI Tracer script
- How to trace CryptoAPI calls
- RSACryptoServiceProvider fails when used with mandatory profiles
- CAPICOM support on Windows Vista