Improved provisioning and certificate checking.