'Issues with algorithmia Host name 'http://api.algorithmia.com' does not match the certificate subject provided by the peer (CN=*.algorithmia.com)

this simple call doesn't seem to work anymore:

AlgorithmiaClient cli = Algorithmia.client(GlobalVariables.ALGORITHMIA_KEY);

getting an error:

com.algorithmia.APIException: Host name 'api.algorithmia.com' does not match the certificate subject provided by the peer (CN=*.algorithmia.com)

at com.algorithmia.client.HttpClient.execute(HttpClient.java:244)
at com.algorithmia.client.HttpClient.execute(HttpClient.java:211)
at com.algorithmia.client.HttpClient.put(HttpClient.java:163)
at com.algorithmia.data.DataFile.put(DataFile.java:154)
at com.algorithmia.data.DataFile.put(DataFile.java:165)
at com.algorithmia.data.DataDirectory.putFile(DataDirectory.java:90)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source