Adding ssl and server support

Change-Id: Idacecef7e96795485049c46b2ccc8d62f19da250