I have the following doubt.

I am building an SSO integration based on .Net 2.0.
(1)Development environment: WinXP Profesional, .NET 2.0  y Vs2005 SP1.
(2)Production Environment: Windows 2003 Server, .NET 2.0.

Downloaded the sample code from:
Google Apps Apis > Docs > Client Libraries and Sample Code > sso-
sample-1.0-cs.zip

I adapted this code accordingly and it WORKED PERFECTLY in my
development environment(1).

When I passed it on to the production environment, it fails while
trying to load the certificate on the command:

        X509Certificate2 cert = new X509Certificate2 ("d:\key\mykey.pfx",
String.Empty)

This line can be found in the project:

Namespace:      Google.Apps.SingleSignOn
Class:  XmlDocumentSigner
Function:       LoadRsaKey()

There is a known bug on windows 2003 servers (http://
support.microsoft.com/kb/915980), which does not allow you to load a
PFX file.
The hot fix is not available for download.

Question: Is there another way to load the PFX file?

I experimented with an alternative method utilizing a class built with
win32 published in MSDN:

http://msdn2.microsoft.com/en-us/library/ms867088.aspx#pk_topic2

Michel I. Gallant, Ph.D.
JavaScience Consulting
March 2004
Applies to:
   Microsoft(R) .NET Framework version 1.1
   Microsoft(R) Visual Studio(R) .NET
   Microsoft(R) Windows(R) security
Summary: This article provides the code framework for accessing the
certificates, public keys, and private keys within pfx/p12 files
from .NET Framework code using P/Invoke to CryptoAPI. It requires only
the .NET Framework version 1.1 with no additional support. (11 printed
pages)
Download the PKCS.exe code sample.
But in the end it gives the same error indicating that it cannot load
the file.

Thanks in advance for any help you may provide.

Regards,
Rodrigo
Developer Tigabytes


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to