Initial implementation of secure connection.