Added a check to ensure that selfSSL is present before trying to use it.