Added support for cert chains