Added a way to return a certificate chain