Coder Social home page Coder Social logo

x509 Certificate issue about wego HOT 13 CLOSED

schachmat avatar schachmat commented on May 22, 2024
x509 Certificate issue

from wego.

Comments (13)

schachmat avatar schachmat commented on May 22, 2024

Can you still reproduce this, @gipfeli? WWO recently changed their certificate and it works for me. Which commit of wego are you using?

from wego.

 avatar commented on May 22, 2024

@schachmat

Can you still reproduce this

[maxim@localhost ~]$ wego
2015/06/01 11:45:29 Get https://api.worldweatheronline.com/free/v2/weather.ashx?key=26b42a27c1503bd00132ce33bd129&q=Murmansk&format=json&num_of_days=3&tp=3&lang=en: x509: certificate signed by unknown authority (possibly because of "x509: cannot verify signature: algorithm unimplemented" while trying to verify candidate authority certificate "COMODO RSA Certification Authority")

from wego.

schachmat avatar schachmat commented on May 22, 2024

Two possibilities come to mind:

  • Your operating system is not up to date. The comodo CA needs SHA384 and RSA-4096 support to verify.
  • You don't have the comodo CA in your trust-store. Try to update the respective package (on debian it would be called ca-certificates)

A dirty workaround would be to change the we.go to use http instead of https, but I don't recommend that.

from wego.

thomshutt avatar thomshutt commented on May 22, 2024

I've just started hitting this issue too on Ubuntu 14.10 with the latest version of ca-certificates

from wego.

schachmat avatar schachmat commented on May 22, 2024

Heyho @gipfeli, @Region51, @thomshutt,

can you check if it works, when you insert the line _ "crypto/sha512" to the imports in we.go? This blog entry might be related.

Also which version of golang-go are you running?

from wego.

imranzahid01 avatar imranzahid01 commented on May 22, 2024

On my mac (10.10.3) I have the following SHA checked out e0dce56 (10 days ago). go version spits out go version go1.1.2 darwin/amd64
The error I am receiving is:

2015/06/01 08:30:28 Get https://api.worldweatheronline.com/free/v2/weather.ashx: x509: certificate signed by unknown authority

from wego.

imranzahid01 avatar imranzahid01 commented on May 22, 2024

I synced my repo to master head, and added the line _ "crypto/sha512" as you mentioned, did a build install, and now wego runs smoothly.

from wego.

thomshutt avatar thomshutt commented on May 22, 2024

Same here, all working after adding crypto/sha512

from wego.

gipfeli avatar gipfeli commented on May 22, 2024

All working. We can close the ticket now.

from wego.

schachmat avatar schachmat commented on May 22, 2024

The issue is also fixed upstream, but I don't know in which version exactly. I am running golang 1.4.2, but debian jessie is still at 1.3.3. Im closing it, but if there are more reports from up-to-date distro users, I think we have to include that import statement in wego master temporarily, until the major distributions caught up on the golang upstream fix.

from wego.

schachmat avatar schachmat commented on May 22, 2024

Reopened, so people see this.

Still if anyone having this problem is running an up to date distribution, let me know.

from wego.

OliverLeitner avatar OliverLeitner commented on May 22, 2024

ubuntu 14.04 lts, will be "up to date" for a few years more...

go version go1.2.1 linux/amd64

installed from your github, now 5 hours ago (thats as upstream as it gets, right?).

plus: very latest security updated ssl/tls libraries.

from wego.

schachmat avatar schachmat commented on May 22, 2024

Ok, Ubuntu seems to be not bleeding edge enough unfortunately…
I have merged the respective pull request #49. It should work now without manual code adjustments after you updated wego, @OliverLeitner.

from wego.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.