mock-tls-server (npm): Mock up a plain or TLS-encrypted TCP connection without using any actual network facilities or needing any permissions.  This is useful for testing, particularly playing around with different TLS failure modes.
Keywords: tls|ssl|socket|server|certificate|X.509|ca|certificate authority|localhost|test|mock