This function is used to associate a key (to be used as primary) with a X.509 certificate. Usually this function is called after key import from a X.509 certificate.
No return value.
This function can generate the following errors:
... xenc_key_create_cert (key_name, key_value, key_type, fmt, NULL, key_passwd); xenc_set_primary_key (key_name); ...