I done it. Changing the port of ssl, I have to specify it the API url. Then I edited the httpd-vhosts.conf configuration file of XAMPP to inform Apache about the API url.
Then in ValidateRemoteCertificate sub, I change code for to only true result.
Now it seems to work. For testing is it ok.
Thanks to everybody