79809223

Date: 2025-11-04 17:45:55
Score: 1
Natty:
Report link

For Redhat Servers use the following

### Download and save ssl cert to a file dockerhub.crt ###

# echo | openssl s_client -showcerts -servername registry-1.docker.io -connect registry-1.docker.io:443 2>/dev/null | \awk '/-----BEGIN CERTIFICATE-----/,/-----END CERTIFICATE-----/' > dockerhub.crt

the local TLS files should be kept in /etc/pki/ca-trust/source/anchors so copy the dockerhub.crt file to anchors

# cp dockerhub.crt /etc/pki/ca-trust/source/anchors

then use update command to update the same

# update-ca-trust extract

update-ca-trust extract tool merges all of this into the extracted output files under:

/etc/pki/ca-trust/extracted

restart your docker service .

Done

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Siddhesh Samant