Workspace error: curl: (60) SSL certificate problem: self-signed certificate in certificate chain

I added the self signed cert to the values.yaml to deploy coder, then i modified the kubernetes template to work with openshift. Everything seems to work fine except that the workspace pod is not able to verify the self signed certificate of the coder api. In the workspace pod i get the error: + curl -fsSL --compressed https://coder.my.domain/bin/coder-linux-amd64 -o coder curl: (60) SSL certificate problem: self-signed certificate in certificate chain How or where to add the root-ca to the workspace pod ?
Solution:
Solved it by adding the certficate in the BuildConfig:
Jump to solution
3 Replies
Codercord
Codercord3mo ago
<#1283325328554721322>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Solution
ariedebeuker
ariedebeuker3mo ago
Solved it by adding the certficate in the BuildConfig:
ariedebeuker
ariedebeukerOP3mo ago
RUN openssl s_client -connect coder.mydomain:443 -showcerts </dev/null 2>/dev/null |sed -e '/-----BEGIN/,/-----END/!d' | tee "/usr/local/share/ca-certificates/mpi-ca.crt" RUN update-ca-certificates
Want results from more Discord servers?
Add your server