-
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.