Can I Test API locally?

Can I make API Test with authentication on my local computer?
ie. redirect_uri = ‘localhost/ContactIntegrateApi/’

i’m getting this ERror : Secure Connection Failed
with this url : https://localhost/hubspotintegrate/index.php/HubSpotContacts/test_one/?error=invalid_request

Thank you in advance

Test can be done locally, sorry for the topic.

How did you figure this out?