11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

addCertificate<br />

Syntax<br />

addCertificate(certPath, usedAs, format, algorithm, context)<br />

Note: This function is case-sensitive. If you want it to be case-insensitive, you<br />

must compile your programs using the BASIC command with the -i option.<br />

Description<br />

The addCertificate function loads a certificate, or multiple certificates, into a<br />

security context for UniData to use as a server or client certificate. Alternatively, this<br />

function can specify a directory which contains the certificates that are either used as<br />

CA (Certificate Authority) certificates to authenticate incoming certificates, or act as<br />

a Revocation list to check against expired or revoked certificates.<br />

For detailed information about the addCertificate function, see <strong>UniBasic</strong><br />

Extensions.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

certPath A string containing the name of the OS-level file that holds the certificate,<br />

or the directory containing certificates.<br />

usedAs 1– Used as a client/server certificate.<br />

2 – Used as an issuer certificate.<br />

3 – Used as a Certificate Revocation List (CRL)<br />

addCertificate Parameters<br />

addCertificate 1-83

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!