This function is used to create a self-signed X.509 certificate by given private key
This function can generate the following errors:
The example below shows how could be created RSA private key, then self-signed certificate and finally to be stored in the user's key store.
... xenc_key_RSA_create ('id_rsa', atoi (get_keyword ('num', params, '1024'))); xenc_x509_ss_generate ('id_rsa', sequence_next ('ca_id_rsa'), 365, vector ('C', get_keyword ('c', params), 'O', get_keyword ('o', params), 'CN', get_keyword ('name', params), 'emailAddress', get_keyword ('email', params)), vector ('authorityKeyIdentifier', 'keyid,issuer:always')); USER_KEY_STORE (user, 'id_rsa', 'X.509', 2, '', xenc_pkcs12_export ('id_rsa', 'CA Certificate', '')); ...