root@masterdev01:~# echo | openssl s_client -connect dev-regs.wachid.web.id:443 -showcerts | awk '/-----BEGIN CERTIFICATE-----/,/-----END CERTIFICATE-----/{print}' > /usr/local/share/ca-certificates/CA-root-custom.crt
depth=0 CN = wachid.web.id
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 CN = wachid.web.id
verify error:num=21:unable to verify the first certificate
verify return:1
depth=0 CN = wachid.web.id
verify return:1
DONE
root@masterdev01:~#
root@masterdev01:~# update-ca-certificates
Updating certificates in /etc/ssl/certs...
1 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
root@masterdev01:~#