Unable to get local issuer certificate

I added a collabora server as docker app. I’m using nginx ans set there a certificate and a key. While using curl i’m getting:

[/share/CACHEDEV1_DATA/.qpkg/NGinX] # curl -vvvv myserver

  • Host myserver:443 was resolved.
  • IPv6: (none)
  • IPv4: 95.89.19.211
  • Trying 95.89.19.211:443…
  • Connected to collabora.xxx.de (95.89.19.211) port 443
  • ALPN: curl offers http/1.1
  • TLSv1.3 (OUT), TLS handshake, Client hello (1):
  • CAfile: none
  • CApath: /etc/ssl/certs
  • TLSv1.3 (IN), TLS handshake, Server hello (2):
  • TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
  • TLSv1.3 (IN), TLS handshake, Certificate (11):
  • TLSv1.3 (OUT), TLS alert, unknown CA (560):
  • SSL certificate problem: unable to get local issuer certificate
  • Closing connection
    curl: (60) SSL certificate problem: unable to get local issuer certificate

I placed the CA file in /etc/ssl/certs.
Now it looks like, it doesn’t find it. Where it searches for the CA certs?

How can i fix it?

I found a solution. I used cat and combined my certfile with my ca file.
Now it works as expected.