Centos - Adding Docker-ce repo error : Peer's Certificate has expired

When trying to install docker on my new CentOS 7 machine, I was getting the below error message .

]# curl -fsSL https://get.docker.com/ | sh
curl: (60) Peer’s Certificate has expired.

I fixed the problem using the below article.

http://sysops.km2gd.com/adding-docker-ce-repo-to-centos-peers-certificate-has-expired/