SSL messed up (The nginx plugin is not working; there may be problems with your existing configuration.)

Description

Hello together,
I messed up my Ubuntu Installation. After setting up the system I tried somehow to enable SSL, and now I m not able to reach my application.

Errormessage is attached below.

Thank you very much

Server Setup Information

  • Version of Rocket.Chat Server:
  • Operating System: Ubuntu 19.04. x64
  • Deployment Method:
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version:
  • MongoDB Version:
  • Proxy:
  • Firewalls involved:

Any additional Information

Error while running nginx -c /etc/nginx/nginx.conf -t.

nginx: [warn] the “ssl” directive is deprecated, use the “listen … ssl” directive instead in /etc/nginx/sites-enabled/default:13
nginx: [emerg] cannot load certificate “/etc/nginx/certificate.crt”: BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(’/etc/nginx/certificate.crt’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed

The nginx plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError(‘Error while running nginx -c /etc/nginx/nginx.conf -t.\n\nnginx: [warn] the “ssl” directive is deprecated, use the “listen … ssl” directive instead in /etc/nginx/sites-enabled/default:13\nnginx: [emerg] cannot load certificate “/etc/nginx/certificate.crt”: BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(’/etc/nginx/certificate.crt’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file)\nnginx: configuration file /etc/nginx/nginx.conf test failed\n’)

You haven’t told us what you did to get in the mess in the first place so we can’t tell you how to undo said mess.

How did you install Rocket?
Please use *buntu 18.04 LTS - Rocket may not work on the intermediate releases

If you read your own logs you can see your error is here:

“No such file or directory:fopen(’/etc/nginx/certificate.crt”

So you need to fix your SSL certificates and put them in the right palce.

If you are using snaps and not confident in this then follow the documentation and use caddy (removing nginx and anything else first)