Example certificate content for root and intermediate certificate:

sudo mkdir /usr/local/share/ca-certificates/extra
sudo cp root.cert.pem /usr/local/share/ca-certificates/extra/root.cert.crt
sudo update-ca-certificates
Important tip: You have to select the certificate at the top of the list that opens after "sudo update-ca-certificates" command.