SSL certificate problem

FROM balenalib/rpi-raspbian:latest
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
curl: (60) SSL certificate problem: unable to get local issuer certificate

I think balenalib/rpi-raspbian:latest has some problems whit ca-certificates since I have to add these to get it working:

RUN curl -k -o /tmp/cacert.crt https://curl.haxx.se/ca/cacert.pem
&& mv /tmp/cacert.crt /usr/local/share/ca-certificates/cacert.crt
&& update-ca-certificates