//[Test]
        public void TestGetEncodedCACertificateFromVecs()
        {
            // Act
            var encodedCACertificate = _ssoAdminClient.GetEncodedCACertificateFromVecs().FirstOrDefault <string>();

            // Assert
            Assert.NotNull(encodedCACertificate);
        }
Exemple #2
0
 public void SaveVcenterCACertficates()
 {
     try {
         _logger.LogInformation(
             string.Format(Resources.PerofomingOperation, Resources.StoringCACertificates));
         var encodedCerts = _ssoAdminClient.GetEncodedCACertificateFromVecs();
         if (encodedCerts != null)
         {
             _configWriter.WriteTrustedCACertificates(encodedCerts);
         }
     } catch (Exception ex) {
         _logger.LogError(ex.ToString());
         throw;
     }
 }