xenc_X509_certificate_serialize
Exports a X.509 certificate from user's repository
varchar xenc_X509_certificate_serialize
(in name varchar);
Description
This function is used to export X.509 from user's space.
Parameters
name –
The name of the key associated with X.509 certificate.
Return Types
The function returns base64 encoded string containing X.509 certificate in DER (raw) format.
Also the certificate will contain the key associated with it.
Errors
This function can generate the following errors:
.
Examples
Exporting a X.509 certificate
The example exports a X.509 certificate associated with 'dsa-test' key from user's space.
...
declare x509 varchar;
x509 := xenc_X509_certificate_serialize ('dsa-test');
...