Add nss support

Add nss support, reusing most of existing ssl tt files