How to fix “SSL certificate problem: self signed certificate in certificate chain” error?

Probably you don’t have correct CA certificates available in the container, so TLS connections can’t be verified. Try to install ca-certificates package (package may have a different name, it depends on the used distribution). UPDATE: Your company inspects TLS connections in the corporate network, so original certificates are replaced by your company certificates. You need … Read more

How do I POST JSON data with cURL?

You need to set your content-type to application/json. But -d (or –data) sends the Content-Type application/x-www-form-urlencoded, which is not accepted on Spring’s side. Looking at the curl man page, I think you can use -H (or –header): Full example: (-H is short for –header, -d for –data) Note that -request POST is optional if you … Read more