Added tls certs & test, added type check to nossock