Giter VIP home page Giter VIP logo

Comments (7)

 avatar commented on September 28, 2024

The issue here is that the server certificate is not signed by anyone trusted, so you can either:

  1. Skip certificate checking entirely (not a good idea, but fine for testing):

    config.TLSConfig.InsecureSkipVerify = true
    
  2. Use a certificate that is signed by a CA that your machine trusts.

  3. Make the certificate trusted.

I was having some issues with solution 3, in that I was not able to get trusted, murmur generated certificates to be accepted. Additionally, any self-signed certificate that I created and set as trusted could not be used. The only way I managed to get it working was to (a) create a root certificate, then (b) create a new certificate that was signed by the first. After setting my root certificate as trusted, I was able to connect without issue.

from gumble.

matthieugrieger avatar matthieugrieger commented on September 28, 2024

Awesome, this is helpful. You can probably tell that I'm not too experienced with certificates.

Thanks!

Just to clarify, is this kind of what you did for your workaround for number 3? I haven't tried it quite yet, just wanted to confirm.

from gumble.

 avatar commented on September 28, 2024

Just to clarify, is this kind of what you did for your workaround for number 3? I haven't tried it quite yet, just wanted to confirm.

That looks about the same. The CA.pl tool may do it for you, but if it doesn't, remember to add the CA cert to your system.

from gumble.

matthieugrieger avatar matthieugrieger commented on September 28, 2024

Awesome, thanks for the help.

from gumble.

matthieugrieger avatar matthieugrieger commented on September 28, 2024

Hey, just one last quick question. What is different about gumble where it is required to set up a CA cert? Did piepan just skip certificate checking? I'm just asking because it would be a bit of a pain to ask those who use my bot to set up a certificate when they didn't have to do it previously. I'm thinking about just making it a command line option to skip cert checking when launching my bot.

Thanks!

from gumble.

 avatar commented on September 28, 2024

What is different about gumble where it is required to set up a CA cert? Did piepan just skip certificate checking?

That's correct; piepan didn't verify anything, which was very bad.

I have just added gumbleutil.CertificateLockFile which should allow working with self-signed certificates less of a pain.

from gumble.

matthieugrieger avatar matthieugrieger commented on September 28, 2024

I have just added gumbleutil.CertificateLockFile which should allow working with self-signed certificates less of a pain.

Oh, awesome! I will definitely check this out.

from gumble.

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.