Hey
Thanks for the tip. But there seems to be one more problem.
I use my SSL Certificates with mySQL Administrator and also with Maestro's mySQL. - Both programs are able to connect with my SSL-Secured mySQL Server

When I use the same SSL-Certificates as embedded resource in my program(Resource://... changed as you provided in the last post), then I get the following error

We cannot reproduce the issue in our environment. The program works correctly with our test certificates in both cases: either they are set as files in the system ("file://D:\ca-cert.pem") or as compiled resources ("resource://MyNamespace.ca.pem"). Please tell us:
1) is there any inner exception when the error occurs?
2) does your code work if you set your certificates as files in the system?