when I try to connect to my server through MySQL Connector/NET using SSL with PFX certificate I have a problem with establishing the connection. I get a connection timeout. And the server probably fall down (I don't know it for sure, because I don't manage the server).
On the Windows XP it works all right but not on Windows 7.
Where is problem? In Windows 7 or on the server (MySQL 5.0)? Sometimes I get "Calling interface SSPI Failed" error, but not everytime. Sometimes only a connection timeout error.
XP and Windows 7 use different permission structures on certificates. If you're using a PFX from the Certificate Store, Win7 would ask for elevation when trying to make your connection. If you can't grant it -- if your application is headless, for example -- the connection would time out.
Open the certificate manager (try this) and look for the certificate you're using to authenticate to MySQL. You may need an available public key and your public key may have the wrong permissions. Look here for details on how to change permissions.
There's also a chance you may have your certificate in the wrong store, but this can also be fixed with the Certificate Store MMC snap-in.
If you're using your PFX from a file and importing it into the store is an option, try that. Otherwise you'll most likely need to set permissions on the certificate after import before connection.
The server logs, if available, could also give you information on why a your connection failed. Here are some options:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With