~maria-captains/mariadb-java-client/trunk

Viewing all changes in revision 449.

  • Committer: Vladislav Vaintroub
  • Date: 2013-06-25 21:46:55 UTC
  • Revision ID: wlad@montyprogram.com-20130625214655-kipebz9koqn5jljo
CONJ-48: Introduce new parameters serverSslCert, which allows validation for self-signed server certificates.


Server certificate (or server CA certificate) can be passed in 3 forms

sslServerCert=/path/to/cert.pem (path to certificate)
sslServerCert=classpath:relative/path  (path relative to the current classpath)
or as string,
sslServerCert=----BEGIN CERTIFICATE----- ..

The certificate needs to be DER encoded, i.e it needs to start with ---BEGIN CERTIFICATE-----  line followed by base64 data, and end with -----END CERTIFICATE-----


Large part of this functionality was contributed by  Sehrope Sarkuni.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: