The Curious Engineer

All blogs / Security

Decrypt my World

learn.microsoft.com/en-us/archive/blogs/alejacma

Cryptography, Security, Debugging and more!

SecurityWindows internalsC# / .NETMicrosoft blogsMSDN archive

’10’15’20’25
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

  1. .NET and the XAdES standard

2012 10

  1. Good bye Escalation Engineer, Hello Developer Evangelist
  2. How to enumerate all certificates on a smart card (PowerShell)
  3. Would you like a free code sample from Microsoft?
  4. ExportParameters returns Invalid type specified error
  5. Big delay while calling EnvelopedCms constructor
  6. More on .NET CMS classes and SHA-2 algorithms
  7. How to call CryptMsg API in streaming mode - LargeCMS full sample
  8. Process created with CreateProcessAsUser won't initialize properly
  9. How to get the sAMAccountName of a foreign security principal (C#)
  10. EnvelopedCMS throws an "ASN1 out of memory" exception with files larger than 5 MB

2011 31

  1. Unable to import a key into KeyNumber.Signature with RSACryptoServiceProvider
  2. Big delay when calling X509Certificate2 constructor
  3. How to verify validity of certificates with .NET
  4. X509Certificate2 raises "The Smart card resource manager is not running" exception
  5. SCardEstablishContext fails with SCARD_E_NO_SERVICE error
  6. How to automate a command line utility like DiskPart (vbscript)
  7. SignTool fails with error 0x80092006 on Windows Server 2008
  8. How to update "Run only specified windows applications" GPO programmatically (VBScript)
  9. FileSystemWatcher class does not fire Change events when NotifyFilters.Size is used
  10. How to disable "This Web site is attempting to perform a digital certificate operation on your behalf" message
  11. How to disable the pop up that Windows shows when an app crashes
  12. How to verify signatures using a temporary keyset in .NET
  13. SChannel does not support SSL Fragmentation
  14. Big delay when calling SslStream.AuthenticateAsClient
  15. How to create a memory mapped file with C# (Windows Vista / Windows 7)
  16. How to customize error messages shown when changing password on Windows 7
  17. How to request a certificate programmatically using the Certificate Enrollment Web Services (C#)
  18. How to add Alternative Directory Name to your certificate request (C#)
  19. How to add Subject Alternative Name to your certificate requests (C#)
  20. Certificate request doesn't allow the private key of the enrolled certificate to be exported
  21. How to add Friendly Name to your enrolled certificates programmatically
  22. Certificate request won't set Key Usage to Digital Signature in enrolled certificate
  23. How to access Certificate Enrollment Web Services from non-domain joined computers
  24. How to use INTERNET_OPTION_SERVER_CERT_CHAIN_CONTEXT with InternetQueryOption in C#
  25. We can't manage printers with WMI in a clustered environment
  26. Unexpected black screen when using a custom Credential Provider
  27. Problems when compiling and running code that uses CertEnroll with .NET 4.0 and x64
  28. How to add Issuer Alternative Name to your certificate request (C#)
  29. How to export our enrolled certificates programmatically
  30. CreateProcessAsUser fails with error 5 (Access Denied) when using Jobs
  31. Why is my process in a Job if I didn't put it there?

2010 44

  1. How to get info from client certificates issued by a CA (C#, VS 2010)
  2. How to export issued certificates from a CA programatically (PowerShell)
  3. How to export issued certificates from a CA programatically (C#)
  4. How to install the response from a CA programmatically (PowerShell)
  5. How to get all certificates in the Server Certificates section of IIS Manager programmatically (PowerShell)
  6. How to remove a certificate from a certificate store programmatically (PowerShell)
  7. Get-WmiObject : The type initializer for 'System.Management.MTAHelper' threw an exception
  8. System.DirectoryServices.AccountManagement.UserPrincipal.IsMemberOf returns false negatives
  9. Global hooks getting lost on Windows 7
  10. How does CryptoAPI order the certificates in the stores?
  11. How to read msTSProfilePath, msTSHomeDrive and msTSHomeDirectory properties from AD (VB.NET)
  12. How to access the new Certificate Enrollment Web Services programmatically
  13. .NET and the CAdES standard
  14. Creating signatures with SignedXML following ebXML standard
  15. X.509 chain validation without CRL (C#)
  16. Which standards does SignedXml support?
  17. "NotTimeNested" not detected when doing chain validation
  18. How to publish a printer in Active Directory (C#)
  19. P/Invoking CryptoAPI in .NET. Part 2 (C#)
  20. How to call CryptEncodeObject in .NET (C#)
  21. I'm on Twitter now!
  22. How to request an smartcard logon cert programmatically (C#)
  23. CryptoAPI and 5 bytes exponent public keys
  24. "Invalid provider type specified" when using CNG providers with .NET CMS classes
  25. "An internal error ocurred" when using AES algorithms with EnvelopedCms
  26. "An internal error ocurred" when using SHA-2 algorithms with SignedCMS
  27. CertEnroll control won't work when hosted inside a frame/iframe in IE8 (FIX)
  28. Invalid algorithm specified when signing with RSACryptoServiceProvider and SHA 256
  29. CertEnroll control won't work when hosted inside a frame/iframe in IE8
  30. How to get info from client certificates issued by a CA (C#)
  31. How to get the AD groups a user is member of (ASP)
  32. SetWindowsHookEx fails with error ERROR_MOD_NOT_FOUND
  33. How to call CryptMsg API in streaming mode (C#)
  34. ERROR_INVALID_DATA decrypting keyMaterial info from WiFi profile
  35. "ASN1 value too large" error when calling SignedCms.ComputeSignature
  36. SendInput doesn't work but it doesn't return an error
  37. How to change drive letters (VBScript)
  38. SignerSignEx returns error 0x80070020
  39. SignerSignEx returns error 0x800b0003
  40. How to get all DCs in a Forest (VBScript)
  41. How to set sound volume programmatically
  42. How to change ownership and give full permissions to a user on a folder (VBScript)
  43. Do CNG certificates work on Windows XP?
  44. WinHttpCertCfg tool cannot access private key of a certificate

2009 57

  1. "Invalid provider type specified" error when accessing X509Certificate2.PrivateKey on CNG certificates
  2. Does SignTool work on Windows 7?
  3. x64 version of SignTool?
  4. x64 version of CAPICOM?
  5. 2.1.0.3, a new CAPICOM version?
  6. HttpWebClientProtocol.ClientCertificates and PFX files
  7. How to manipulate REG_MULTI_SZ values from the registry (C++)
  8. Access Violation exception when loading a certificate in .NET (Windows Server 2003)
  9. CAPICOM support on Windows 7
  10. Working with CNG in .NET 3.5
  11. CryptographicException: The data to be decrypted exceeds the maximum for this modulus of 0 bytes
  12. X509Certificate creates temporary files which are never deleted
  13. How to timestamp Authenticode signatures when our proxy requires authentication
  14. MANAGED DEBUGGING with WINDBG. Locks
  15. MANAGED DEBUGGING with WINDBG. Breaking on an Exception. Part 2
  16. SubAuthentication package gets Zero LogonId
  17. MANAGED DEBUGGING with WINDBG. Breaking on an Exception. Part 1
  18. MANAGED DEBUGGING with WINDBG. Managed Heap. Part 5
  19. MANAGED DEBUGGING with WINDBG. Managed Heap. Part 4
  20. MANAGED DEBUGGING with WINDBG. Managed Heap. Part 3
  21. MANAGED DEBUGGING with WINDBG. Managed Heap. Part 2
  22. MANAGED DEBUGGING with WINDBG. Managed Heap. Part 1
  23. Controls won't get resized once the nesting hierarchy of windows exceeds a certain depth (x64)
  24. MANAGED DEBUGGING with WINDBG. Thread Stacks. Part 2
  25. MANAGED DEBUGGING with WINDBG. Thread Stacks. Part 1
  26. MANAGED DEBUGGING with WINDBG. Threads. Part 2
  27. MANAGED DEBUGGING with WINDBG. Threads. Part 1
  28. MANAGED DEBUGGING with WINDBG. Call Stacks. Part 3
  29. MANAGED DEBUGGING with WINDBG. Call Stacks. Part 2
  30. MANAGED DEBUGGING with WINDBG. Call Stacks. Part 1
  31. MANAGED DEBUGGING with WINDBG. Setting a Breakpoint. Part 3
  32. MANAGED DEBUGGING with WINDBG. Setting a Breakpoint. Part 2
  33. MANAGED DEBUGGING with WINDBG. Setting a Breakpoint. Part 1
  34. MANAGED DEBUGGING with WINDBG. Preparing the Environment
  35. MANAGED DEBUGGING with WINDBG. Help
  36. MANAGED DEBUGGING with WINDBG. Prerequisites
  37. MANAGED DEBUGGING with WINDBG. Introduction and Index
  38. SOS Cheat Sheet (.NET 2.0/3.0/3.5)
  39. How to call InternetErrorDlg to deal with certificate issues on SSL connections (C#)
  40. CertEnroll::CX509Enrollment::p_CreateRequest returns error 0x8009000b
  41. CertEnroll::CX509Enrollment::p_CreateRequest returns error 0x80092012
  42. CertEnroll::CX509Enrollment::p_CreateRequest returns error 0x800b0112
  43. CertEnroll::CX509Enrollment::p_CreateRequest returns error 0x80070057
  44. CertEnroll::CX509Enrollment::p_InstallResponse returns error 0x80095002
  45. How to create a certificate request that uses key archival with CertEnroll (JavaScript)
  46. NdrClientCall2 fails with RPC_S_ALREADY_LISTENING when using pipes over ncalrpc
  47. Default Provider Type for CspParameters has changed
  48. Do you need help right now?
  49. How to get information from a CRL (.NET)
  50. How to create a self-signed certificate with CryptoAPI (C++)
  51. How to get LastLogon property for all users in a Domain (VBScript)
  52. How to create a certificate request with CertEnroll (ASP)
  53. CryptUIDlgViewCertificate installs a CA certificate without my consent
  54. How to view a certificate programatically (C#)
  55. CRL gets cached after we do an Online verification with X509Chain
  56. How to create a certificate request with CertEnroll (JavaScript)
  57. SHA-2 support on Windows XP

2008 55

  1. RSACryptoServiceProvider fails if we delete a user from the machine
  2. CryptSignHash fails with NTE_BAD_KEYSET
  3. How to sign EXE files with an Authenticode certificate (part 2)
  4. How to change Windows Theme programmatically in XP
  5. How to change Windows Change Password dialog to reflect our custom password policy
  6. How to clean up expired certs on your smart card
  7. RSACryptoServiceProvider.Encrypt returns "Key not valid for use in specified state" error
  8. How to generate key pairs, encrypt and decrypt data with .NET (C#)
  9. Something has changed in my life
  10. How to get assembly version without loading it
  11. How to create a certificate request with CertEnroll and .NET (C#)
  12. FileNotFoundException when using XEnroll in ASP.NET
  13. How to debug Windows services with Windbg
  14. How to get more than 1000 group members including foreign SAMs (VBScript)
  15. How to modify an Interop assembly to change the return type of a method (VB.NET)
  16. CryptographicException: Unable to open the access token of the current thread
  17. How to use DHeapMon.exe to troubleshoot Desktop Heap issues
  18. How to use Windbg to debug a dump of a 32bit .NET app running on a x64 machine
  19. Threading issues with RSACryptoServiceProvider
  20. Threading issues with CryptoAPI
  21. Security Warning dialog box is displayed when you try to silently install a hotfix or an update
  22. How to Sign and Verify the signature with .NET and a certificate (C#)
  23. System.DirectoryServices.DirectorySynchronization returns access denied with non-admin users
  24. WMI Diag won't work well in non-English Windows
  25. How to verify if password meets complexity requirements programmatically
  26. Don't use default key containers if possible
  27. CryptAcquireContext fails with NTE_BAD_KEYSET
  28. Who has access to a folder? (C#)
  29. CryptAcquireContext fails with ERROR_FILE_NOT_FOUND
  30. How to read certificate extensions with CAPICOM (C#)
  31. How to get Antivirus information with WMI (VBScript)
  32. ChangePassword method may fail with TargetInvocationException (.NET)
  33. How to get a list of all users in an OU (VBScript)
  34. DpapiProtectedConfigurationProvider fails while decrypting web.config (ASP.NET)
  35. Certificate has private key but we get "the keyset does not exist" error
  36. How to read a registry key and its values (VBScript)
  37. Win32_Process.Create fails if user profile is not loaded
  38. How to Encrypt and Decrypt with CryptoAPI and a user Certificate (Windows Mobile)
  39. How to get ADs Providers list (C#)
  40. How to get Password Expiration Date with System.DirectoryServices (C#)
  41. CAPICOM Security Alerts are not localized
  42. How to change the Security Descriptor of WMI objects
  43. How to change Registry Permissions with RegIni.exe (VBScript)
  44. How to get the user running a VBScript
  45. CAPICOM support on Windows Server 2008
  46. PKCS#11 interface support on Windows 2000/Server 2003
  47. How to get the logged on user with WMI (VBScript)
  48. How to select which Smart Card reader to perform actions on
  49. How to sign a message and verify a message signature (C#)
  50. How to sign EXE files with an Authenticode certificate (VB.NET)
  51. How to sign an XML and verify the signature with .NET (VB.NET)
  52. How to import a certificate without user interaction (C++ & C#)
  53. How to generate key pairs, encrypt and decrypt data with CryptoAPI
  54. How to sign and verify with CryptoAPI and a user certificate
  55. How To Host an NT Service on svchost.exe

2007 14

  1. How to call CreateProcessWithLogonW & CreateProcessAsUser in .NET
  2. SCardGetStatusChange fails with SCARD_E_NO_SERVICE error
  3. Key Containers: Basics
  4. Smart Card's PIN gets cached
  5. XmlDsigC14NTransform normalization behavior depends on input type
  6. RSACryptoServiceProvider fails when used with ASP.NET
  7. P/Invoking CryptoAPI in .NET (VB.NET version)
  8. P/Invoking CryptoAPI in .NET (C# version)
  9. How to debug LSASS.exe process
  10. How to trace CryptoAPI calls (2)
  11. CryptoAPI Tracer script
  12. How to trace CryptoAPI calls
  13. RSACryptoServiceProvider fails when used with mandatory profiles
  14. CAPICOM support on Windows Vista