Symptoms
While Importing ISO file from Update manager via HTML5 client, operation ends/stops without any specific error message
/var/log/vmware/vsphere-ui/logs/vsphere-client-virgo.log :
[2020-03-05T22:05:23.623Z] [ERROR] tp-nio-127.0.0.1-5090-exec-7 com.vmware.vum.client.upload.FileUploadClient Error while executing HTTP request javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:316)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:310)
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1639)
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:223)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1037)
/var/log/vmware/vsphere-ui/logs/vsphere-client-virgo.log :
[2020-03-05T22:05:23.623Z] [ERROR] tp-nio-127.0.0.1-5090-exec-7 com.vmware.vum.client.upload.FileUploadClient Error while executing HTTP request javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:316)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:310)
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1639)
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:223)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1037)
Cause
Intermediate Cert might be absent from the Cert Store
Resolution
1. Validate the Machine SSL Certs ( Machine, Intermediate and Root )
2. Verify from Subject Key Identifier that only the Root cert would be present in the TRUSTED_ROOTS store,the Intermediate Cert might be absent.
3. Export the certificate from the browser via
4. Copy the cert block and create a file name subca.crt in the /tmp folder of vCenter
5. Published the Cert
6. Post that, the upload the ISOs on the vCenter HTML5 Client should work.
/usr/lib/vmware/vmafd/bin/vecs-cli entry list --store TRUSTED_ROOTS --text
2. Verify from Subject Key Identifier that only the Root cert would be present in the TRUSTED_ROOTS store,the Intermediate Cert might be absent.
3. Export the certificate from the browser via
https://FQDN:9087/vum-fileupload/
4. Copy the cert block and create a file name subca.crt in the /tmp folder of vCenter
5. Published the Cert
/usr/lib/vmware-vmafd/bin/vecs-cli entry create --store TRUSTED_ROOTS --alias <thumbprint> --cert /tmp/subca.crt
<thumbprint> will be the thumbprint of the Intermediate Cert which is retrieved from the cert in the browser
6. Post that, the upload the ISOs on the vCenter HTML5 Client should work.
Workaround
ISO file can be imported via Flex/flash Client
Comments
Post a Comment