Key and digital certificate management