Hello, i want to know how can i restrict my server or curl to access a url through https
I want to restrict Example Domain , and then when i run this command in ssh :-
curl Example Domain
then I will get this output :
curl: (51) Unable to communicate securely with peer: requested domain name does not match the server's certificate.
and if i use php to get contents of that page via
file_get_contents("Example Domain");
then i will get this error :-
file_get_contents(): Peer certificate CN=`' did not match expected CN=`example.com
I seen this in a server, i wanted to know how can i do this
I want to restrict Example Domain , and then when i run this command in ssh :-
curl Example Domain
then I will get this output :
curl: (51) Unable to communicate securely with peer: requested domain name does not match the server's certificate.
and if i use php to get contents of that page via
file_get_contents("Example Domain");
then i will get this error :-
file_get_contents(): Peer certificate CN=`' did not match expected CN=`example.com
I seen this in a server, i wanted to know how can i do this
Last edited by a moderator: