Skip to content

Problem with SSL certificates #2

Open

Description

@hkeio

I get the error

[Error: The SSL certificate is invalid

when I try to use your example.
How can I fix that?

Another question:
Is it possible to pull a repo via ssh? When I set the the remoteUrl to "git@github.com:holodex/git-sync.git" I get

[Error: authentication required but no callback set]

Activity

  1. ahdinosaur commented on Oct 31, 2015

    @ahdinosaur
    Contributor

    hey @heiko87

    ah, turns out where we use this in production uses git://, so should probably update the example. do you have a use case where git:// isn't enough?

    of course support for both https:// and ssh would be ideal as well. we're relying on NodeGit (based on libgit2) Clone here, so i wonder if this is an upstream issue: it looks like to get https:// with GitHub working we need to do something like the clone.js example and i imagine a similar credentials callback to get ssh working.

    pull requests welcome. :)

  2. hkeio commented on Nov 2, 2015

    @hkeio
    Author

    I'm trying to use bitbucket's private repo's and unfortunately bitbucket doesn't support git:// as I can't find anything about it.

    So to make it easier for me I could use nodegit but that's quite overhead because I only need this sync function :)

  3. ahdinosaur commented on Nov 3, 2015

    @ahdinosaur
    Contributor

    @heiko87 i added a noCertificateCheck option and published it as 1.1.0, lemme know if enabling noCertificateCheck fixes your error using HTTPS (as i can't reproduce from here). 🐱

  4. hkeio commented on Nov 3, 2015

    @hkeio
    Author

    Cool! After a little bugfix this is working just fine for me! :)
    I added a note at your commit b7a6b2e#commitcomment-14151203

  5. ahdinosaur commented on Nov 3, 2015

    @ahdinosaur
    Contributor

    lol. cheers, fixed and published as 1.1.1. thanks again!

  6. hkeio commented on Nov 3, 2015

    @hkeio
    Author

    Sweet!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions