Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load resource: net::ERR_INSECURE_RESPONSE #11809

Closed
agokulravikumar opened this issue Jun 20, 2017 · 2 comments
Closed

Failed to load resource: net::ERR_INSECURE_RESPONSE #11809

agokulravikumar opened this issue Jun 20, 2017 · 2 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@agokulravikumar
Copy link

agokulravikumar commented Jun 20, 2017

I get the error and the Piwik 3.0.4 integration is not getting hits. Both the request and host server are https and still the error throws up in the console.

Kindly check the error on console of the site https://blog.furnituremagik.com and the piwik.js file when accessed in an another tab opens perfectly.

It is working fine when integrated with a http domain.

Tried all possibilities but nothing worked. Need help in resolving.

@Findus23
Copy link
Member

Findus23 commented Jun 20, 2017

Hi,

The problem is exactly what chrome tells you: an insecure response.

The piwik url in your tracking URL is https://www.fmgk.in/analytics/piwik.js, but if one tries to request this url, the server responds with a file that is encrypted with a certificate that is only valid for fmgk.in. (without www)
You can test this with curl:
curl -v https://www.fmgk.in

[...]
* Server certificate:
*  subject: CN=fmgk.in
*  start date: Jun 19 16:23:00 2017 GMT
*  expire date: Sep 17 16:23:00 2017 GMT
*  subjectAltName does not match www.fmgk.in
* SSL: no alternative certificate subject name matches target host name 'www.fmgk.in'
* Curl_http_done: called premature == 1
* stopped the pause stream!
* Closing connection 0
* TLSv1.2 (OUT), TLS alert, Client hello (1):
curl: (51) SSL: no alternative certificate subject name matches target host name 'www.fmgk.in'

The solution is to also request a let's encrypt certificate for the www. domain (-"d www.example.com -d example.com"

UPDATE:

  • https://www.fmgk.in redirects to http://furnituremagik.com without https
  • You have multiple debugger; lines left in http://furnituremagik.com/js/default.js which causes JS-execution to halt if one has the developer tool open while loading the page.
  • The Piwik Forum is a better place to ask general questions, that are not necessary bugs in piwik.

@agokulravikumar
Copy link
Author

Thanks and after installing certificates to both www and non www it is finally working.

@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Jun 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

3 participants