php - PHPStorm 7 REST Client allow self signed certificates

233

I'm using PHPStorm 7 to create a RESTful API. I wanted to use the built in REST Client but need to be able to tell it to allow untrusted SSL Certificates. I am using a self signed certificate on my test server.

At the moment when I send my request I get this response.

javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

Is there an option I can change to ignore this?

94

Answer

Solution:

I would recommend creating your own Certificate Authority (CA) and generate certificates for your server(s) signed by it. You then have to add the CA public certificate to your local machine (probably into the Java store, and into Internet Explorer settings (if you're using Windows that is)).

Creating Your Own SSL Certificate Authority (and Dumping Self Signed Certs)

Custom SSL Certificate Authority?

People are also looking for solutions to the problem: php - How to access XML or transform to JSON in Laravel

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.