Can not access web ui after renewal of ssl certificates

Steps to reproduce

1.I just manaully updated Owncloud. I put it in the Maintenance mode and then from the command line updated owncloud.
2. My self-signed ssl needed to be update so I updated using certbot with letsencrypt.
3.Now I can not access my owncloud webui. I can access from anywhere. localhost or my domain i created for it.

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

Server configuration

Operating system:Ubuntu 16.04

Web server:apache2


PHP version:php5.7

ownCloud version: 10.0.4

Updated from an older ownCloud or fresh install:updated from 9.1. not sure what version i came from

Where did you install ownCloud from: I installed from command line.

I'm not sure I can help a lot but I had the same problem long time ago. I don't remember exactly how I solved it but I think it was just a problem with owncloud trying to connect with the old certificate.
So you can check the owncloud/config/config.php file for the certificate name that should match the newly created one.