Hello all,
We have been trying to follow the white paper to set up WCF communication between the DMZ Forms server and the internal one, but getting no luck so far. The message we got from running the tool on the DMZ Forms server was.
System.Exception: ERROR: Invalid certificate. ---> System.Exception: "System.Security.Cryptography.CryptographicException: Invalid provider type specified.\r\n\r\n at System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer)\r\n at System.Security.Cryptography.Utils.GetKeyPairHelper(CspAlgorithmType keyType, CspParameters parameters, Boolean randomKeyContainer, Int32 dwKeySize, SafeProvHandle& safeProvHandle, SafeKeyHandle& safeKeyHandle)\r\n at System.Security.Cryptography.RSACryptoServiceProvider.GetKeyPair()\r\n at System.Security.Cryptography.RSACryptoServiceProvider..ctor(Int32 dwKeySize, CspParameters parameters, Boolean useDefaultKeySize)\r\n at System.Security.Cryptography.X509Certificates.X509Certificate2.get_PrivateKey()\r\n at System.Security.Cryptography.X509Certificates.RSACertificateExtensions.GetRSAPrivateKey(X509Certificate2 certificate)\r\n at E_Forms.WebApi.Version1.Controllers.WcfSettingsController.ValidateIISRightsForCertificate(String thumbprint)"
--- End of inner exception stack trace ---
at DMZConfigurationUtility.DMZConfignUtility.<ValidateCertificate>d__28.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at DMZConfigurationUtility.DMZConfignUtility.<btnTest_ClickAsync>d__24.MoveNext()
This appears to be a typical issue of CNG vs CAPI certificates, but I also remember reading an article in this forum saying that it shouldn't be an issue with Laserfiche 11 and later. Does anyone have a definite answer if it's one way or the other?
Another question that I have is how many certificates are actually needed between the DMZ and internal Forms server for the whole setup with WCF communication? Would it be always 4 certs? Two for each of the IIS instances and two separate ones for WCF purposes?
Any comments or suggestions would be greatly appreciated. Thank you!
-H