Skip to content
This repository has been archived by the owner on May 15, 2019. It is now read-only.

Make the Mattermost client accept untrusted certificates #66

Open
heretech373 opened this issue Jan 26, 2018 · 9 comments
Open

Make the Mattermost client accept untrusted certificates #66

heretech373 opened this issue Jan 26, 2018 · 9 comments

Comments

@heretech373
Copy link

Hey.
Encountered a problem with connection to Mattermost server (same VM as Mattermail).
I can connect to mail account, I can see new letters, but Mattermail cannot post in Mattermost channel because of untrusted certificate.
Is there a method to override this?

@cseeger-epages
Copy link

have you tried adding

"TLSAcceptAllCerts": true

to your config.json

@heretech373
Copy link
Author

heretech373 commented Feb 5, 2018 via email

@rodcorsi
Copy link
Owner

rodcorsi commented Feb 7, 2018

Please test with the last commit using "TLSAcceptAllCerts": false, was fixed an issue with StartTLS

@heretech373
Copy link
Author

heretech373 commented Feb 7, 2018 via email

@rodcorsi
Copy link
Owner

rodcorsi commented Feb 8, 2018

The problem seems to be when Mattermail tries to login to the Mattermost.

login on Mattermost to post mail message:
login on mattermost V4:
http://*****/api/v4/users/login:
model.client.connecting.app_error, Post http://******/api/v4/users/login:
dial tcp *********:
i/o timeout

The login connection reaches timeout, check the Mattermost configuration in config.json and check your network configuration

@heretech373
Copy link
Author

heretech373 commented Feb 8, 2018 via email

@rodcorsi
Copy link
Owner

rodcorsi commented Feb 8, 2018

I don't know if it's correct but in your log I can see http: instead of https:

@heretech373
Copy link
Author

heretech373 commented Feb 8, 2018 via email

@rodcorsi
Copy link
Owner

rodcorsi commented Feb 8, 2018

Great, I'll to do some tests to see if it's possible to make the Mattermost client to accept all the certificates.

@rodcorsi rodcorsi changed the title Mattermost connection error Make the Mattermost client accept untrusted certificates Feb 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants