MySQL Connector/J Release Notes
        
          JSSE provides debugging information to
          stdout when you set the system property
          -Djavax.net.debug=all. Java then tells you
          what keystores and truststores are being used, as well as what
          is going on during the SSL handshake and certificate exchange.
          That will be helpful when you are trying to debug a failed SSL
          connection.