Get key name from key name or certificate name.
Error Thrown if name is neither a key name nor a certificate name.
name
Get key name from key name or certificate name.