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

Certificate verification: certificate common name doesn't match requested host name #40

Closed
endorama opened this issue Apr 3, 2013 · 8 comments

Comments

@endorama
Copy link
Contributor

endorama commented Apr 3, 2013

For some unspecified reason ( I wasn't able to understand where the problem come's from ) trying to push or pull on an Aruba.it shared hosting fails with the above mentioned error.

There is a possible fix for this?

@stefanoverna
Copy link
Contributor

change hosting 😄

@endorama
Copy link
Contributor Author

endorama commented Apr 3, 2013

Damn! :) I know, I know... but apart from this little fact ( I assure you i wouldn't be on aruba if not strictly obliged ), there is a way to disable certificate check?

@Arkham
Copy link
Contributor

Arkham commented Apr 4, 2013

Which adapter are you using, ssh or ftp?

@endorama
Copy link
Contributor Author

endorama commented Apr 4, 2013

ftp..

@Arkham
Copy link
Contributor

Arkham commented Apr 4, 2013

You could try creating a ~/.lftp/rc with:

set ssl:verify-certificate no

@endorama
Copy link
Contributor Author

endorama commented Apr 4, 2013

It worked! :) Thanks... But this will disable certificate check for every site, am I right?

There is another possible way to disable it only for known hosts?

Thanks again :)

@Arkham
Copy link
Contributor

Arkham commented Apr 4, 2013

Not that I know of, although probably you could limit the scope by disabling only the server hostname check:

set ssl:check-hostname no

You can find some more lftp configuration details here: https://gist.github.com/gaubert/822090

Good luck! 💃

@endorama
Copy link
Contributor Author

endorama commented Apr 8, 2013

I'm going to close this, as the issue is solved! ssl:check-hostname is the proper solution!

Thanks

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

3 participants