I ran into this issue while making REST calls from my app server running in AWS EC2. The following Steps fixed the issue for me.
- curl -vs https://your_rest_path
- echo | openssl s_client -connect your_domain:443
- sudo apt-get install ca-certificates
curl -vs https://your_rest_path will now work!