modify the test programs to use SSL
crude attempt at switching to TLS. It works, but has some kludges