Add service identity to SSL socket and use in ticket cache