Hi there, first post here and I would really appreciate some help.
I had a Freepbx 17.0.19.24, and everything was working “fine” until I needed to use the API to get some call records.
This error comes up when I try to generate documentation:
cURL error 60: SSL: no alternative certificate subject name matches target host name ‘192.168.x.x’ (see libcurl - Error Codes) for https://192.168.x.x/admin/api/api/token
File:/var/www/html/admin/modules/api/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:211
And this error when I try to use the GraphQL Explorer (or curl the same query)
{
“error”: {
“type”: “League\OAuth2\Server\Exception\OAuthServerException”,
“message”: “The resource owner or authorization server denied the request.”,
“code”: 9,
“file”: “/var/www/html/admin/modules/api/vendor/league/oauth2-server/src/Exception/OAuthServerException.php”,
“line”: 243
}
}
I am doing this on an ESXi server, using Debian 12.2.0-14 and I am behind a firewall.
Tried to do replicate it in my local vmware workstation and it works just fine.
I also created a new machine on the ESXi but the same errors happened
Any thoughts is very very much appreciated