mirror of https://github.com/apache/jclouds.git
Fix incorrect key format check in Docker
This commit is contained in:
parent
730a4cfe87
commit
496fbae646
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue