Showing posts from March, 2019

Managing Edge Gateway from vCloud director portal return error - java.lang.NullPointerException

java.lang.NullPointerException is generic error message on the vCloud director. Cause : If the error in the vCloud director logs contains the below highlighted messages, then this is because of the inconsistency between the vCloud director database and vCenter/NSX database for the problematic edge. This could happen if the edge interface was directly modified on the vCenter. Error in the logs : 2019-03-28 11:27:59,796 | INFO     | metadataRefreshTimer      | AbstractReloadingMetadataProvider | Next refresh cycle for metadata provider 'nhvr' will occur on '2019-03-28T04:27:59.796Z' ('2019-03-28T14:27:59.796+10:00' local time) | 2019-03-28 11:28:00,007 | WARN     | pool-jetty-82             | Edge                           |  feature SimpleProxiedFeatures already registered before  | requestId=ab06045e-2cbe-4cb6-a7e3-cb8e68272fc2,request=POST,requestTime=1553736479769,remoteAddress=

View and Export a remote server/host certificate chain using OpenSSL

Command to view the certificate of the remote host :  openssl s_client -host vcd.vcloud.local -port 443 -prexit -showcerts The sample output :  [root@vcd91 logs]# openssl s_client -host vcd.vcloud.local -port 443 -prexit -showcerts CONNECTED(00000003) depth=0 CN = localhost verify error:num=20:unable to get local issuer certificate verify return:1 depth=0 CN = localhost verify error:num=21:unable to verify the first certificate verify return:1 --- Certificate chain  CN=localhost  CN=localhost -----BEGIN CERTIFICATE----- MIIDJzCCAg+gAwIBAgIIGCO6ARMqzPcwDQYJKoZIhvcNAQELBQAwFDESMBAGA1UE AxMJbG9jYWxob3N0MB4XDTE4MDQxMjE2MjYxNFoXDTE5MDQxMjE2MjYxNFowFDES MBAGA1UEAxMJbG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC AQEAqH8MhOvLYUXi9KnbykTclmMFMWyJsHH5mDu7uJBOF8flWIxBmyGjAseGYkw9 6D0zmEqJCseC0u1oNXyb1HH1rWHtwUmCtOwg/dVIOSaTVet8DjbhgjoTSU31lMll . . . . . . zYpAgY6lonBKyjDUiRp//XkXiZjLyJZQfRXYEjrFt79EJ8/boQllFhHJlJaBGxt7 RoQTgc