added ability to download certificate chain