Finally got this to work! I had this issue for hours, because i was editing the wrong php.ini from other answers here on stackoverflow.
here's what i did
Download the certificate bundle.
Put it inside of C:\wamp64\bin\php\your php version\extras\ssl
Make sure the file mod_ssl.so is inside of C:\wamp64\bin\apache\apache(version)\modules
Enable mod_ssl in httpd.conf inside of Apache directory C:\wamp64\bin\apache\apache2.4.27\conf
Enable php_openssl.dll in php.ini. Be aware my problem was that I had two php.ini files and I need to do this in both of them. One is the one you get from your WAMP taskbar icon here.

and the other one is located in C:\wamp64\bin\php\php(Version)
find the location for both of the php.ini find the line where it says curl.cainfo = and give it a path like this
curl.cainfo = "C:\wamp64\bin\php\php(Version)\extras\ssl\cacert.pem"
Now restart your server and you should be good to go