I've been having some irregular issues with the x509 certificate.
Currently the implementation is working, but it seems unstable so far.
We generated the x509 certificate in both PEM (for Google) and PFX
(for us) formats as described in the Getting Started doc and that
worked perfectly in our test environment. We generated a different
x509 certificate the same way for our production environment, but when
we initially deployed with Google Health we received the following
error:

System.Security.Cryptography.CryptographicException:
The system cannot find the file specified.

Pertinent part of the Stack trace:
System.Web.HttpUnhandledException: Exception of type
'System.Web.HttpUnhandledException' was thrown. --->
System.Security.Cryptography.CryptographicException: The system cannot
find the file specified.

   at
System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException
(Int32 hr)
   at
System.Security.Cryptography.X509Certificates.X509Utils._LoadCertFromFile
(String fileName, IntPtr password, UInt32 dwFlags, Boolean
persistKeySet, SafeCertContextHandle& pCertCtx)

We are using similar code from the .NET code sample for signed
requests:
http://code.google.com/p/googlehealthsamples/source/browse/trunk/dotNET/health_dotnet_asp_samples/HealthProfile(signed).aspx

To resolve this, our Server team recommended that we re-copy and
overwrite the PFX certificate file to our production website again;
and this worked. It was assumed that the PFX file on the production
environment had become corrupted somehow and was not working. However,
the same error came up later last week and was only evident for about
4 hours and then started working again. Our production environment is
locked down much more than our test environment, but we are still
unaware of the root cause. Any suggestions?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Health Developers" 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/googlehealthdevelopers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to