Decodes certificates.