Fixing an issue with the root certificate that was being returned