Once the certificate property is set, use the LoginToSync or OnlineLogin API with no parameters to connect to Unwired Server with the login certificate.
//connect to Unwired Server with the login certificate MyPackageDB.GetSynchronizationProfile().Certificate = lc; MyPackageDB.LoginToSync();