add rudiments of SSL support