- Defined in:
#ssl_verify_peer(cert) ⇒ Object
Called by EventMachine when :verify_peer => true has been passed to. It will be called with each certificate in the certificate chain provided by the remote peer.
The cert will be passed as a String in PEM format, the same as in. It is up to user defined code to perform a check on the certificates. The return value from this callback is used to accept or deny the peer. A return value that is not nil or false triggers acceptance. If the peer is not accepted, the connection will be subsequently closed.
# File 'lib/em/connection.rb', line 174 def ssl_verify_peer(cert) end