Fix incorrect key format check in Docker

This commit is contained in:
Andrew Donald Kennedy 2016-06-16 20:02:14 +01:00 committed by Ignasi Barrera
parent 730a4cfe87
commit 496fbae646
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ public class SSLContextBuilder {
private TrustManager[] trustManagers;
public static final boolean isClientKeyAndCertificateData(String key, String cert) {
return (key.startsWith(Pems.PUBLIC_X509_MARKER) || key.startsWith(Pems.PUBLIC_PKCS1_MARKER)) &&
return (key.startsWith(Pems.PRIVATE_PKCS1_MARKER) || key.startsWith(Pems.PRIVATE_PKCS8_MARKER)) &&
cert.startsWith(Pems.CERTIFICATE_X509_MARKER);
}