Home Contents | # pki:getCipherSuite() | Cipher/PKI | Core4 Lua Commands

## SYNOPSIS

1. name = pki:getCipherSuite()
2. result = pki:info()

## DESCRIPTION

pki:getCipherSuite() returns the name of the cipher used by the stored key, e.g. "RSA".

The pki:info() function returns a table with basic information about the stored key.

The table contains the information: keysize = Number of bits in the key, ciphersuite = Type of cipher, e.g. "RSA", padding = Type of padding, hash = Type of hash.

## 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

pki:keysize()