Added self-signed certificate library and test file