elazarl / goproxy

An HTTP proxy library for Go
BSD 3-Clause "New" or "Revised" License
6.03k stars 1.09k forks source link

CustomCA example - installing root cert #290

Open richp10 opened 6 years ago

richp10 commented 6 years ago

Running the customca example, the browser refuses to load the page. The response is signed with the goproxy sample certificate succesfully, but this is not recognised as valid.

I believe what needs to be done is to install the 'root' certificate in the browser machine. I installed the 'caCert' from the customca folder as a root certificate but it still does not work. Am using windows and installed it using the mmc utility and I can see the certificate in the list.

Am I missing something here?

elazar-lb commented 6 years ago

Sounds like you're doing what you should, does chrome tells you why the certificate is invalid?