{"action":"created","issue":{"url":"https://api.github.com/repos/docker-java/docker-java/issues/224","labels_url":"https://api.github.com/repos/docker-java/docker-java/issues/224/labels{/name}","comments_url":"https://api.github.com/repos/docker-java/docker-java/issues/224/comments","events_url":"https://api.github.com/repos/docker-java/docker-java/issues/224/events","html_url":"https://github.com/docker-java/docker-java/issues/224","id":78255516,"number":224,"title":"DockerClientException: Error in SSL Configuration","user":{"login":"diogogmt","id":794765,"avatar_url":"https://avatars.githubusercontent.com/u/794765?v=3","gravatar_id":"","url":"https://api.github.com/users/diogogmt","html_url":"https://github.com/diogogmt","followers_url":"https://api.github.com/users/diogogmt/followers","following_url":"https://api.github.com/users/diogogmt/following{/other_user}","gists_url":"https://api.github.com/users/diogogmt/gists{/gist_id}","starred_url":"https://api.github.com/users/diogogmt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diogogmt/subscriptions","organizations_url":"https://api.github.com/users/diogogmt/orgs","repos_url":"https://api.github.com/users/diogogmt/repos","events_url":"https://api.github.com/users/diogogmt/events{/privacy}","received_events_url":"https://api.github.com/users/diogogmt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker-java/docker-java/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-19T21:22:54Z","updated_at":"2015-06-26T19:54:34Z","closed_at":null,"body":"I'm getting a DockerClientException: Error in SSL Configuration everytime I instantiate a new DockerClient.\r\n\r\nInitialization code:\r\n```\r\nDockerClientConfig config = DockerClientConfig.createDefaultConfigBuilder()\r\n            .withVersion(\"1.16\")\r\n            .withUri(\"http://172.20.8.100:2375\")\r\n            .build();\r\nDockerClient docker = DockerClientBuilder.getInstance(config).build();\r\nInfo info = docker.infoCmd().exec();\r\n```\r\n\r\n```\r\ncom.github.dockerjava.api.DockerClientException: Error in SSL Configuration\r\n\tat com.github.dockerjava.jaxrs.DockerCmdExecFactoryImpl.init(DockerCmdExecFactoryImpl.java:78)\r\n\tat com.github.dockerjava.core.DockerClientImpl.withDockerCmdExecFactory(DockerClientImpl.java:65)\r\n\tat com.github.dockerjava.core.DockerClientBuilder.build(DockerClientBuilder.java:66)\r\n\tat com.clouddynamics.exosphere.v2.api.site.provider.SiteDocker.sanityCheck(SiteDocker.java:67)\r\n\tat com.clouddynamics.exosphere.v2.api.site.command.SiteAddCmd.execute(SiteAddCmd.java:195)\r\n\tat com.clouddynamics.exosphere.v2.api.BaseApi.execute(BaseApi.java:65)\r\n\tat com.clouddynamics.exosphere.v2.api.site.command.SiteAddCmd.restEndPoint(SiteAddCmd.java:185)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:483)\r\n\tat org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)\r\n\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:164)\r\n\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:181)\r\n\tat org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:158)\r\n\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:101)\r\n\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)\r\n\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)\r\n\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)\r\n\tat org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:305)\r\n\tat org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)\r\n\tat org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)\r\n\tat org.glassfish.jersey.internal.Errors.process(Errors.java:315)\r\n\tat org.glassfish.jersey.internal.Errors.process(Errors.java:297)\r\n\tat org.glassfish.jersey.internal.Errors.process(Errors.java:267)\r\n\tat org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)\r\n\tat org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:288)\r\n\tat org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1110)\r\n\tat org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:401)\r\n\tat org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:386)\r\n\tat org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:335)\r\n\tat org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:222)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n\tat org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)\r\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)\r\n\tat de.javakaffee.web.msm.RequestTrackingContextValve.invoke(RequestTrackingContextValve.java:99)\r\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)\r\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)\r\n\tat de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:156)\r\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)\r\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)\r\n\tat org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)\r\n\tat org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)\r\n\tat org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1517)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1474)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: com.github.dockerjava.api.DockerClientException: class \"org.bouncycastle.asn1.pkcs.RSAPublicKey\"'s signer information does not match signer information of other classes in the same package\r\n\tat com.github.dockerjava.core.LocalDirectorySSLConfig.getSSLContext(LocalDirectorySSLConfig.java:59)\r\n\tat com.github.dockerjava.jaxrs.DockerCmdExecFactoryImpl.init(DockerCmdExecFactoryImpl.java:76)\r\n\t... 54 more\r\nCaused by: java.lang.SecurityException: class \"org.bouncycastle.asn1.pkcs.RSAPublicKey\"'s signer information does not match signer information of other classes in the same package\r\n\tat java.lang.ClassLoader.checkCerts(ClassLoader.java:895)\r\n\tat java.lang.ClassLoader.preDefineClass(ClassLoader.java:665)\r\n\tat java.lang.ClassLoader.defineClass(ClassLoader.java:758)\r\n\tat java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)\r\n\tat org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2472)\r\n\tat org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:854)\r\n\tat org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1274)\r\n\tat org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1157)\r\n\tat org.bouncycastle.openssl.PEMParser.<init>(Unknown Source)\r\n\tat com.github.dockerjava.core.CertificateUtils.loadPrivateKey(CertificateUtils.java:110)\r\n\tat com.github.dockerjava.core.CertificateUtils.createKeyStore(CertificateUtils.java:43)\r\n\tat com.github.dockerjava.core.LocalDirectorySSLConfig.getSSLContext(LocalDirectorySSLConfig.java:51)\r\n\t... 55 more\r\n[INFO] 19 May 21:20:00 localhost-startStop-2 [com.clouddynamics.exosphere.platform.common.init.ServiceContainerStartupManager]```\r\n"},"comment":{"url":"https://api.github.com/repos/docker-java/docker-java/issues/comments/115855267","html_url":"https://github.com/docker-java/docker-java/issues/224#issuecomment-115855267","issue_url":"https://api.github.com/repos/docker-java/docker-java/issues/224","id":115855267,"user":{"login":"daddykotex","id":5230460,"avatar_url":"https://avatars.githubusercontent.com/u/5230460?v=3","gravatar_id":"","url":"https://api.github.com/users/daddykotex","html_url":"https://github.com/daddykotex","followers_url":"https://api.github.com/users/daddykotex/followers","following_url":"https://api.github.com/users/daddykotex/following{/other_user}","gists_url":"https://api.github.com/users/daddykotex/gists{/gist_id}","starred_url":"https://api.github.com/users/daddykotex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daddykotex/subscriptions","organizations_url":"https://api.github.com/users/daddykotex/orgs","repos_url":"https://api.github.com/users/daddykotex/repos","events_url":"https://api.github.com/users/daddykotex/events{/privacy}","received_events_url":"https://api.github.com/users/daddykotex/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T19:54:34Z","updated_at":"2015-06-26T19:54:34Z","body":"I'm able to generate a certificate for Firefox with : \r\n```\r\ncd ~/.boot2docker/certs/boot2docker-vm\r\nopenssl pkcs12 -export \\\r\n-inkey key.pem \\\r\n-in cert.pem \\\r\n-name b2d-client-side \\\r\n-out b2d-client-side.p12 \\\r\n-password pass:tcuser\r\n```\r\nImport b2d-client-side.p12 into Firefox, and reach successfully : https://192.168.59.103:2376/info\r\n\r\nI really can't figure out what is going on here :("}}