I'm using Docker In Docker for Jenkins Slaves in our CI Pipeline.
I have run into an issue regarding SSL. The issue is maven can't access artifacts located in our Nexus repo, it simply hangs.
I tried using curl for debugging.
Inside the DinD container, all is fine:
$ curl -I https://www.google.com
HTTP/1.1 200 OK
If however I run:
bash-4.3# curl -I --insecure https://nexus.eng.myco.com/nexus
curl: (35) Unknown SSL protocol error in connection to nexus.eng.myco.com:443`
it hangs for a long time and then I get this error:
curl: (35) Unknown SSL protocol error in connection to nexus.eng.myco.com:443`
I can run the problematic curl
statement one level up (the docker container that is running the problem docker container), all is good.
I should note that if I run the problematic DinD container on my laptop (not in DinD though), it has no issues.
update with debug info:
bash-4.3# curl -v -I https://nexus.eng.myco.com/nexus/content/groups/this>
* Trying 54.164.137.27...
* Connected to nexus.eng.my.com (44.164.137.27) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
Any ideas?