So I'm still confused about exactly which cert you are using, the one you got from NameCheap or one you created inside Cloudflare?
[/quote]
Ok These are my information maybe it can help. it will be really appreciate if you can guide me.
my domain : me-poker.com as you can see the website has a valid certificate issued from cloudfare (name cheap provide ssl but not used since i change the dns to point to cloudfare)
I am connecting to the server using the API for the Login (currently not working untill i fix the error or what ever is not making me connect)
The SSL cert and key are generated from cloudfare from SSL page->origin server (under me-poker.com sjte added in cloudfare) as mentioned in the topic step by step and the Mode is flexible
i change the ports on the software to
file port: 8443
packet port: 443
After changing the ports, i now get refused connection as you can see in this test connection page which get balance of a test account
https://me-poker.com/testConnection.php
I added inbound rule for firewall for the ports but still connection refused
this is the link for my server i am using in my code to connect with the API
$url = "
https://208.117.82.55:8443/[API_PATH]";
I am really stuck and not able to make this work, I hope these information helps to identify my problem, i am new to the SSL stuff, it will be really appreciate if you can guide me step by step, i dont mind reviewed all the steps to ensure it work.