Skip to content

Instantly share code, notes, and snippets.

@piscisaureus
Created June 14, 2012 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save piscisaureus/2931856 to your computer and use it in GitHub Desktop.
Save piscisaureus/2931856 to your computer and use it in GitHub Desktop.
D:\node4>release\node test\simple\test-tls-server-verify.js
Running 'Allow only authed connections with CA1'
NET: bind to 0.0.0.0
connecting with agent1
NET: onconnection
TLS: onhandshakestart
TLS: encrypted._pull
TLS: cleartext._pull
TLS: cleartext._push
TLS: reading from clearOut
TLS: encrypted._push
TLS: reading from encOut
TLS: encrypted.write called with 118 bytes
TLS: encryptedIn data
TLS: encrypted._pull
TLS: writing from encIn
TLS: cleartext._pull
TLS: cleartext._push
TLS: reading from clearOut
TLS: encrypted._push
TLS: reading from encOut
TLS: reading from encOut
TLS: encrypted emit "data" with 735 bytes
TLS: reading from encOut
TLS: resume encrypted
TLS: encrypted._pull
TLS: cleartext._pull
TLS: cleartext._push
TLS: reading from clearOut
TLS: encrypted._push
TLS: reading from encOut
depth=0 /C=US/ST=CA/L=SF/O=Joyent/OU=Node.js/CN=agent2/emailAddress=ry@tinyclouds.org
verify error:num=18:self signed certificate
verify return:1
depth=0 /C=US/ST=CA/L=SF/O=Joyent/OU=Node.js/CN=agent2/emailAddress=ry@tinyclouds.org
verify return:1
TLS: encrypted.write called with 782 bytes
TLS: encryptedIn data
TLS: encrypted._pull
TLS: writing from encIn
TLS: cleartext._pull
TLS: cleartext._push
TLS: reading from clearOut
TLS: onhandshakedone
TLS: secure established
- authed connection: agent1
TLS: cleartext.write called with 9 bytes
TLS: clearIn data
TLS: encrypted._pull
TLS: cleartext._pull
TLS: clearIn 9 bytes
TLS: encrypted._push
TLS: reading from encOut
TLS: reading from encOut
TLS: encrypted emit "data" with 133 bytes
TLS: reading from encOut
TLS: encrypted._push
TLS: reading from encOut
TLS: encrypted._pull
TLS: cleartext._pull
TLS: cleartext._push
TLS: reading from clearOut
TLS: encrypted._push
TLS: reading from encOut
TLS: resume encrypted
TLS: encrypted._pull
TLS: cleartext._pull
TLS: cleartext._push
TLS: reading from clearOut
TLS: encrypted._push
TLS: reading from encOut
* authed
NET: destroy
NET: close
TLS: encrypted.write called with 74 bytes
TLS: encryptedIn data
TLS: encrypted._pull
TLS: writing from encIn
TLS: cleartext._pull
TLS: cleartext._push
TLS: reading from clearOut
TLS: reading from clearOut
TLS: cleartext emit "data" with 8 bytes
TLS: reading from clearOut
TLS: encrypted._push
TLS: reading from encOut
TLS: encrypted.write called with 37 bytes
TLS: encryptedIn data
TLS: encrypted._pull
TLS: writing from encIn
TLS: cleartext._pull
TLS: cleartext._push
TLS: reading from clearOut
TLS: encrypted._push
TLS: reading from encOut
DONE
NET: destroy
NET: close
TLS: encrypted._pull
TLS: end encrypted undefined
TLS: cleartext._pull
TLS: cleartext._push
TLS: reading from clearOut
TLS: encrypted._push
TLS: cleartext._pull
TLS: cleartext._push
TLS: reading from clearOut
TLS: encrypted._push
NET: destroy
NET: close
NET: destroy
NET: close
connecting with agent2
NET: onconnection
TLS: onhandshakestart
TLS: encrypted._pull
TLS: cleartext._pull
TLS: cleartext._push
TLS: reading from clearOut
TLS: encrypted._push
TLS: reading from encOut
TLS: encrypted.write called with 118 bytes
TLS: encryptedIn data
TLS: encrypted._pull
TLS: writing from encIn
TLS: cleartext._pull
TLS: cleartext._push
TLS: reading from clearOut
TLS: encrypted._push
TLS: reading from encOut
TLS: reading from encOut
TLS: encrypted emit "data" with 735 bytes
TLS: reading from encOut
TLS: resume encrypted
TLS: encrypted._pull
TLS: cleartext._pull
TLS: cleartext._push
TLS: reading from clearOut
TLS: encrypted._push
TLS: reading from encOut
depth=0 /C=US/ST=CA/L=SF/O=Joyent/OU=Node.js/CN=agent2/emailAddress=ry@tinyclouds.org
verify error:num=18:self signed certificate
verify return:1
depth=0 /C=US/ST=CA/L=SF/O=Joyent/OU=Node.js/CN=agent2/emailAddress=ry@tinyclouds.org
verify return:1
TLS: encrypted.write called with 720 bytes
TLS: encryptedIn data
TLS: encrypted._pull
TLS: writing from encIn
TLS: cleartext._pull
TLS: cleartext._push
TLS: reading from clearOut
TLS: onhandshakedone
TLS: secure established
NET: destroy
NET: close
TLS: encrypted._push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment