Added support for certificates during curl operations.