Home  Contents

ssl:checkKeyPair

Cipher/SSL Core4 Lua Commands

SYNOPSIS

ok, err, errcode = ssl:checkKeyPair()

DESCRIPTION

After loading a certificate and a private key, this function can be used to verify that the two keys really belong together.

RETURN VALUE

The function returns true on success.

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