Home  Contents

pki:setKey()

Cipher/PKI Core4 Lua Commands

SYNOPSIS

result = pki:setKey(srcpki)

DESCRIPTION

Copies the key that is stored in the pki instance srcpki into the calling pki instance.

RETURN VALUE

On success, returns true.

In case of an error returns three values: nil, a string describing the error and a negative error code from the underlying mbed TLS implementation.

SEE ALSO