# Connection to server 5.0 over https from Client is not possible

**URL:** https://discuss.tryton.org/t/connection-to-server-5-0-over-https-from-client-is-not-possible/1631
**Category:** Developer
**Created:** [August 1, 2019, 10:11pm UTC](https://discuss.tryton.org/t/connection-to-server-5-0-over-https-from-client-is-not-possible/1631 "2019-08-01T22:11:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![oscar](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/oscar/32/1919_2.png) [@oscar](https://discuss.tryton.org/u/oscar)
#### Post date: [August 1, 2019, 10:11pm UTC](https://discuss.tryton.org/t/connection-to-server-5-0-over-https-from-client-is-not-possible/1631/1 "2019-08-01T22:11:26Z")

</div>

Hi,

I activated SSL in Tryton server 5.0 (ubuntu), in config file, adding:

[ssl]  
privatekey = /home/psk/.flask/key.pem  
certificate = /home/psk/.flask/cert.pem

I created self-signed certificate using common name: localhost

My log when run server seems ok:

[2019-08-01 21:42:36,392] INFO werkzeug \* Running on [https://localhost:8000/](https://localhost:8000/) (Press CTRL+C to quit)

But in Login / Profile, ever localhost shows

I can not connect to server from client, ever I get this message:  
“Could not connect to the server”

In debug mode appears  
ERROR:tryton.rpc:[Errno 104] Connection reset by peer

I tried to remove known\_hosts of client in /home/psk/.config/tryton/5.0

But I seems nothing works

I try test in web browser ([https://localhost:8000/](https://localhost:8000/)) and server response favicon, etc,

Maybe I missing something? or maybe my certificate is bad?

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [August 1, 2019, 10:45pm UTC](https://discuss.tryton.org/t/connection-to-server-5-0-over-https-from-client-is-not-possible/1631/2 "2019-08-01T22:45:47Z")

</div>

Tryton client verify the SSL certificate against the OS Certification Authority. If you want to use a different list of authorities, you can create a [`ca_certs` file](http://docs.tryton.org/projects/client-desktop/en/5.0/usage.html#configuration-file).  
Normally, there should be some error message in the logging output.
