Skip to content

[Server]: Fresh start fails to load certificatesย #252

@Artificiangel

Description

@Artificiangel

Add a description

Hello!
I was having a client issue with any non-cached lenses loading forever.
I decided to try fixing the issue by updating the server to V3.4.1 (Current Latest) but it doesn't start properly.
Nginx complains about the certificate not containing "Trusted", according to my research it could be an issue with permissions or the path.
Maybe it is not reading the file at all as I got this error before I discovered I needed to copy the certificates to /ect/ssl.
The V3.2 server was working perfectly for a few months.

Reinstalling V3.2 doesn't work, I am not sure what is different compared to the original which still runs fine.

Steps to Reproduce

  1. Download Snap Camera server v3.4.1 to Ubuntu 20.04 CLI and unzip.
  2. Run ./gencert.sh -> req: Can't open "./ssl/studio-app.snapchat.com.key" for writing, Is a directory
  3. Delete and recreate folder without key folders, run gencert.sh again.
    Snap camera server expects the certificates in /etc/ssl/cert... now, upgrading from v3.2
  4. Copy the crt to /etc/ssl/cert/studio-app... and the key file to /etc/ssl/private/studio-app...
  5. Delete the ssl folder to regenerate.
  6. Run Docker compose up in main dir -> Web proxy error:
nginx: [emerg] cannot load certificate "/etc/ssl/certs/studio-app.snapchat.com.crt": PEM_read_bio_X509_AUX() failed (SSL: error:0480006C:PEM routines::no start line:Expecting: TRUSTED CERTIFICATE)

Tried to fix by:

  • Adding "TRUSTED" to the BEGIN and END sections.
  • Changing permissions of the certificate and links to my user
  • Running the server with Sudo
  • In files like nginx/default.conf.template tried changing all the paths to the local ./ssl/ and ran a fresh start.
  • Setup instructions for Linux usersย #105 Adding certificates also to /usr/local and running update-ca-certificates

Other versions tested

  • V3.4.0 Error: cannot load certificate ... Expecting: TRUSTED CERTIFICATE
  • V3.3.4 Error "Blob not defined" webidl.util.MakeTypeAssertion(Blob)
  • V3.3.0 Same issue as above
  • V3.2.0 Same as above

Server Version

Other

Operating System

Other

Confirm

Metadata

Metadata

Assignees

Labels

serverServer isn't working as intended

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions