// both cloud and local
 public AutomationCertificate(CertificateJson localJson, Microsoft.Azure.Management.Automation.Models.Certificate cloudCertificate)
     : base(localJson, cloudCertificate.Properties.LastModifiedTime.LocalDateTime)
 {
     this.setThumbprint(localJson.Thumbprint);
     this.setCertPath(localJson.CertPath);
     this.setPassword(localJson.Password);
     this.setExportable(localJson.Exportable);
     this.Encrypted = localJson.Encrypted;
 }
 // cloud only
 public AutomationCertificate(Microsoft.Azure.Management.Automation.Models.Certificate cloudCertificate)
     : base(cloudCertificate.Name, null, cloudCertificate.Properties.LastModifiedTime.LocalDateTime)
 {
     try
     {
         this.setThumbprint(cloudCertificate.Properties.Thumbprint);
         this.setExportable(cloudCertificate.Properties.IsExportable);
     }
     catch
     {
         this.setThumbprint(null);
     }
     this.Encrypted = true;
 }