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

x509: certificate signed by unknown authority #15

Closed
gallart opened this issue Oct 22, 2015 · 2 comments
Closed

x509: certificate signed by unknown authority #15

gallart opened this issue Oct 22, 2015 · 2 comments

Comments

@gallart
Copy link

gallart commented Oct 22, 2015

I got this error when running your script from Debian 7 :

go run hipchat.go 
2015/10/22 09:22:41 Expected no error, but got "x509: certificate signed by unknown authority"

Script :

package main

import (
    "github.com/andybons/hipchat"
    "log"
)

func main() {
    c := hipchat.NewClient("xxxx")
    req := hipchat.MessageRequest{
        RoomId:        "xxxx",
        From:          "GoLang",
        Message:       "Bad news: Combustible lemons failed.",
        Color:         hipchat.ColorPurple,
        MessageFormat: hipchat.FormatText,
        Notify:        true,
    }

    if err := c.PostMessage(req); err != nil {
        log.Printf("Expected no error, but got %q", err)
    }
}
@andybons
Copy link
Owner

Are you specifying a custom HipChat endpoint to connect to?

This would occur if the endpoint you attempted to connect to has an invalid cert.

@andybons
Copy link
Owner

Closing for lack of response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants