Home  Contents

ssl:setPeerName

Cipher/SSL Core4 Lua Commands

SYNOPSIS

  1. ssl:setPeerName(name)
  2. name = ssl:getPeerName()

DESCRIPTION

Note: This feature is seldom used. It is currently untested in the Core4 implementation.

When checking the peer certificate against the local certificate authority list, the system can also verify the Common Name (CN) reported by the peer. The connection is rejected if the peer identifies with a different name.

Set the expected name with ssl:setPeerName(), query with ssl:getPeerName().

SEE ALSO