Re: JDBC + SSL = "No trusted certificate found" (RESOLVED)

From: Luke McCarthy (luke.mccarthy_at_shaw.ca)
Date: 06/29/04

  • Next message: Luke McCarthy: "Re: JDBC + SSL = "No trusted certificate found""
    Date: Tue, 29 Jun 2004 21:43:45 GMT
    
    

    On Thu, 24 Jun 2004 11:31:20 -0600, Luke McCarthy wrote:

    > ...
    > adding as trusted cert:
    > Subject: CN=lewzealand, OU=bioinfo, O=Uni, L=Sask, ST=Sask, C=CA
    > ...

    Convinced that there was no problem on the Java side, I set up my own
    SSL-enabled mysql server at home where I could manipulate the
    configuration to try and further explore this problem. As soon as I
    did, the problem went away. After some experimentation, it appears the
    problem was this:

    The common name in the SQL certificate must be a fully-qualified
    domain name, or Java doesn't recognize the match. It's not good enough
    if a simple name (e.g.: myserver) is used in both the certificate and the
    JDBC connection statement, even if that name resolves. As soon as an
    equivalent fully-qualified domain name (e.g.: myserver.example.com) is
    used in the certificate and the connection statement, everything just
    works.

    The reason I'm following up here is that this appears to be somewhat
    Java-specific, as mysql itself doesn't care whether a host name is
    fully-qualified or not.

    Cheers,

    Luke


  • Next message: Luke McCarthy: "Re: JDBC + SSL = "No trusted certificate found""

    Relevant Pages

    • Re: HTTPS web service connection errors
      ... Last week the hosts of the web service installed a new signed ... As soon as they installed the new certificate, ... Java web app stopped working. ... your Java installation does not have the key to validate it. ...
      (comp.lang.java.programmer)
    • Re: How to exchange certificate ?
      ... Note that the emphasis in CryptoAPI is on CMS/PKCS#7 Enveloped Data ... Are you specifying the correct certificate and store of the recipient after ... If you want to compare with Java you should really be comparing Java against ... > this certificate to be able to use it to encrypt a message back. ...
      (microsoft.public.platformsdk.security)
    • Re: This certificate is Invalid
      ... grant/accept to give it permission to set your pc's hardware clock. ... Even if Java Web Start complains that the certificate used to sign ... you can get thawte email certificate for free. ...
      (comp.lang.java.advocacy)
    • Re: Connect AD Server 636 to access LDAP SSL
      ... Because i was able to install the cert to the keystore of java and was ... The problem is with windows certificate ... ...
      (microsoft.public.windows.server.active_directory)
    • Re: public folder SSL Enabled
      ... To get that working with a specific certificate, you must get the certificate (with IE for example - click on the certificate details and click export on the root certificate. ... This certificate must then be either installed in the Internet Explorer Trusted root certificate store or in similar place in the Java environment). ... So when I use Java httpclient to build a connection with the public folder. ...
      (microsoft.public.exchange2000.development)