Sign in
Decrypt my World
Cryptography, Security, Debugging and more!
MSDN Blogs
>
Decrypt my World
Search
Options
About
RSS for posts
Atom
RSS for comments
OK
Disclaimer, Maps & Favorite Posts
Any of my posts is supported under any Microsoft standard support program or service. They are provided "AS IS" without warranty of any kind, and confer no rights.
Where are my readers?
Favorite Posts
Do you need help right now?
CryptoAPI Tracer script
MANAGED DEBUGGING with WINDBG. Introduction and Index
Tags
ADSI
CAPICOM
CertEnroll
CNG
CryptAcquireContext
CryptoAPI
Debugger scripts
Debugging
NT Services
P/Invoke
PowerShell
RSACryptoServiceProvider
SCard API
Smart Card
System.DirectoryServices
System.Security
VBScript
WinDbg
Windows 7
Windows SDK
Windows Server 2003
Windows Server 2008
Windows Vista
Windows XP
WMI
Archive
Archives
July 2012
(1)
May 2012
(1)
April 2012
(6)
March 2012
(2)
January 2012
(1)
November 2011
(12)
September 2011
(5)
June 2011
(1)
May 2011
(2)
April 2011
(1)
March 2011
(3)
February 2011
(6)
January 2011
(2)
December 2010
(5)
October 2010
(8)
September 2010
(1)
August 2010
(8)
July 2010
(3)
June 2010
(2)
May 2010
(4)
April 2010
(3)
March 2010
(4)
February 2010
(2)
January 2010
(5)
December 2009
(6)
November 2009
(2)
October 2009
(3)
September 2009
(5)
August 2009
(13)
July 2009
(8)
June 2009
(2)
May 2009
(7)
April 2009
(3)
March 2009
(2)
February 2009
(3)
January 2009
(3)
December 2008
(3)
November 2008
(2)
October 2008
(4)
September 2008
(4)
August 2008
(3)
July 2008
(3)
June 2008
(7)
May 2008
(6)
April 2008
(7)
March 2008
(10)
February 2008
(3)
January 2008
(4)
December 2007
(6)
November 2007
(4)
October 2007
(4)
Share this blog with others!!!
My Twitter (http://twitter.com/alejacma)
RSS
http://twitter.com/statuses/user_timeline/174391821.rss
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Decrypt my World
Good bye Escalation Engineer, Hello Developer Evangelist
Posted
10 months ago
by
Alejandro Campos Magencio
2
Comments
Hello all, I recently changed to another department within Microsoft. I am not an Escalation Engineer working with Windows SDK in general and Crypto in particular anymore. No. Now I am a Developer Evangelist fully dedicated to Windows 8 and Windows...
Decrypt my World
.NET and the XAdES standard
Posted
11 months ago
by
Alejandro Campos Magencio
4
Comments
Hi all, You may know already that SignedXml class in .NET doesn't support the XML Advanced Electronic Signatures (XAdES) standard (more info here: Which standards does SignedXml support? ) Fortunatelly my colleagues in Microsoft France developed...
Decrypt my World
How to remove a certificate from a certificate store programmatically (PowerShell)
Posted
over 1 year ago
by
Alejandro Campos Magencio
1
Comments
Hi all, The following sample will remove a certificate from MY certificate store of the local machine after locating it by serial number : # Pass Serial Number of the cert you want to remove param ($serialNumber = $(throw "Please pass a certificate...
Decrypt my World
How to get all certificates in the Server Certificates section of IIS Manager programmatically (PowerShell)
Posted
over 1 year ago
by
Alejandro Campos Magencio
3
Comments
Hi all, The certificates in the Server Certificates section of IIS Manager (inetmgr.exe) are certificates located in MY certificate store of the local machine , and their Enhanced Key Usage is Server Authentication . The following sample gets those...
Decrypt my World
How to install the response from a CA programmatically (PowerShell)
Posted
over 1 year ago
by
Alejandro Campos Magencio
1
Comments
Hi all, The other day a customer of mine was creating a SSL certificate request with IIS Manager (inetmgr.exe) with "Create Certificate Request..." action in the Server Certificates section. He was sending that request to a Certificate Authority...
Decrypt my World
How to export issued certificates from a CA programatically (PowerShell)
Posted
over 1 year ago
by
Alejandro Campos Magencio
2
Comments
Hi all, The following sample is a conversion of How to export issued certificates from a CA programatically (C#) sample to PowerShell . It will get all the issued certs in the CA database and copy them to a folder: #Params $strServer = "myserver...
Decrypt my World
How to export issued certificates from a CA programatically (C#)
Posted
over 1 year ago
by
Alejandro Campos Magencio
0
Comments
Hi all, The following sample is a simplification of How to get info from client certificates issued by a CA (C#) , and gets all the issued certs in the CA database and copies them to a folder: using System; using System.Windows.Forms; using...
Decrypt my World
How to get info from client certificates issued by a CA (C#, VS 2010)
Posted
over 1 year ago
by
Alejandro Campos Magencio
3
Comments
Hi all, I developed this sample some time ago: How to get info from client certificates issued by a CA (C#) . The other day I tried it on a new machine with Windows 7 , Visual Studio 2010 and .NET Framework 4.0 , and it didn't even compile. I had...
Decrypt my World
Why is my process in a Job if I didn't put it there?
Posted
over 1 year ago
by
Alejandro Campos Magencio
1
Comments
Hi all, The other day a customer of mine was having this issue on Windows 7 : CreateProcessAsUser fails with error 5 (Access Denied) when using Jobs . So he had a Windows service running as System in Session 0, that service created a process running...
Decrypt my World
CreateProcessAsUser fails with error 5 (Access Denied) when using Jobs
Posted
over 1 year ago
by
Alejandro Campos Magencio
1
Comments
Hi all, The other day I worked on a support case where a Windows service running as System in Session 0 was creating a process also running as System in Session 0 , and this new process failed to create another process in the logged-on user's session...
Decrypt my World
How to use INTERNET_OPTION_SERVER_CERT_CHAIN_CONTEXT with InternetQueryOption in C#
Posted
over 1 year ago
by
Alejandro Campos Magencio
0
Comments
Hi all, The other day I needed to use the certificate chain context ( CERT_CHAIN_CONTEXT structure ) returned by a call to InternetQueryOption , in C# . The call in C++ looks like this: PCCERT_CHAIN_CONTEXT CertCtx=NULL; … if (InternetQueryOption...
Decrypt my World
We can't manage printers with WMI in a clustered environment
Posted
over 2 years ago
by
Alejandro Campos Magencio
3
Comments
Hi all, Some time ago a customer of mine wanted to develop PowerShell scripts to manage printers in their clustered environment. They wanted to use WMI for that. The problem they found is that while they could list the printers on a stand-alone...
Decrypt my World
Unexpected black screen when using a custom Credential Provider
Posted
over 2 years ago
by
Alejandro Campos Magencio
0
Comments
Hi all, Some time ago I had a customer how had developed a custom credential provider to use with a third-party smartcard provider . This credential provider was a wrapper of MS Smartcard Credential Provider . They also put a credential provider...
Decrypt my World
Problems when compiling and running code that uses CertEnroll with .NET 4.0 and x64
Posted
over 2 years ago
by
Alejandro Campos Magencio
2
Comments
Hi all, The other day a customer of mine was trying to compile and run this CertEnroll sample of mine: How to create a certificate request with CertEnroll and .NET (C#) I had developed this sample against .NET 2.0 some time ago, and it compiled...
Decrypt my World
How to add Issuer Alternative Name to your certificate request (C#)
Posted
over 2 years ago
by
Alejandro Campos Magencio
0
Comments
Hi all, A customer of mine wanted to set Issuer Alternative Name ( XCN_OID_ISSUER_ALT_NAME2 - "2.5.29.18" ) extension to his certificate requests in C# in the same way we did this, and he didn't know how: How to add Subject Alternative Name to...
Decrypt my World
How to export our enrolled certificates programmatically
Posted
over 2 years ago
by
Alejandro Campos Magencio
0
Comments
Hi all, If you are creating certificate requests to enroll certificates programmatically and using a code like the following: How to create a certificate request with CertEnroll and .NET (C#) , you may need to export the enrolled certificate after...
Decrypt my World
How to access Certificate Enrollment Web Services from non-domain joined computers
Posted
over 2 years ago
by
Alejandro Campos Magencio
0
Comments
Hi all, You may know already this white paper to configure the Certificate Enrollment Web Services : Certificate Enrollment Web Services in Windows Server 2008 R2 " This paper explains how certificate enrollment Web services work in Windows...
Decrypt my World
How to add Friendly Name to your enrolled certificates programmatically
Posted
over 2 years ago
by
Alejandro Campos Magencio
0
Comments
Hi all, One of my customers was creating certificate requests programmatically with CertEnroll and a code like the following: How to create a certificate request with CertEnroll and .NET (C#) . He wanted to set Friendly Name for the enrolled certificate...
Decrypt my World
Certificate request won't set Key Usage to Digital Signature in enrolled certificate
Posted
over 2 years ago
by
Alejandro Campos Magencio
0
Comments
Hi all, The other day a customer of mine was creating certificate requests with a code like the following: How to create a certificate request with CertEnroll and .NET (C#) . He wanted to set the certificate's Key Usage to Digital Signature instead...
Decrypt my World
Certificate request doesn't allow the private key of the enrolled certificate to be exported
Posted
over 2 years ago
by
Alejandro Campos Magencio
0
Comments
Hi all, The other day a customer of mine was creating certificate requests with a code like the following: How to create a certificate request with CertEnroll and .NET (C#) . After he enrolled the certificates, he realized that when he tried to...
Decrypt my World
How to add Alternative Directory Name to your certificate request (C#)
Posted
over 2 years ago
by
Alejandro Campos Magencio
0
Comments
Hi all, We've already seen How to add Subject Alternative Name to your certificate requests (C#) . What if we want to set Alternative Directory Name ( XCN_CERT_ALT_NAME_DIRECTORY_NAME ) in addition to Subject Alternative Name ( XCN_CERT_ALT_NAME_RFC822_NAME...
Decrypt my World
How to add Subject Alternative Name to your certificate requests (C#)
Posted
over 2 years ago
by
Alejandro Campos Magencio
0
Comments
Hi all, The other day a customer of mine wanted to add Subject Alternative Name ( szOID_SUBJECT_ALT_NAME2 - "2.5.29.17" ) extension to his certificate requests in C# and he didn't know how. We have IX509ExtensionAlternativeNames interface for...
Decrypt my World
How to request a certificate programmatically using the Certificate Enrollment Web Services (C#)
Posted
over 2 years ago
by
Alejandro Campos Magencio
1
Comments
Hi all, Some time ago I mentioned a Microsoft SDK sample that uses CertEnroll to access the Certificate Enrollment Web Services and enroll a certificate using a template : How to access the new Certificate Enrollment Web Services programmatically...
Decrypt my World
How to customize error messages shown when changing password on Windows 7
Posted
over 2 years ago
by
Alejandro Campos Magencio
2
Comments
Hi all, A customer of mine wanted to change the error messages shown to users when changing their password on Windows 7, e.g. when new and old passwords won't match, or the old password of the user is invalid, etc. On Windows XP they did that with...
Decrypt my World
FaxSendDocument API does not return when called from a Windows service
Posted
over 2 years ago
by
Alejandro Campos Magencio
0
Comments
Hi all, Some time ago a customer of mine was developing a native application using Fax API , which worked fine on Windows Server 2003 . On Windows Server 2008 though, when the application was being run as a service , they could see that FaxSendDocument...
Page 1 of 9 (215 items)
1
2
3
4
5
»
Translate This Page
Translate this page
Powered by
Microsoft® Translator