Upload Manufest file using VCF Download tool fails with ERROR: Failed to create token. API status code 0. API response null
search cancel

Upload Manufest file using VCF Download tool fails with ERROR: Failed to create token. API status code 0. API response null

book

Article ID: 422490

calendar_today

Updated On:

Products

VMware SDDC Manager

Issue/Introduction

  • Upload Manufest file using VCF Download Tool fail with error below:
    $> /opt/vmware/vcf/lcm/vcf-download/bin/vcf-download-tool binaries upload --depot-store /nfs/vmware/vcf/nfs-mount/download/ --sddc-manager-fqdn <IP ADDRESS/FQDN> --sddc-manager-user admin@local
    
    Error: Failed to create token. API status code 0. API response null
  • Issue not solve even use shortname instead of FQDN / IP address
  • Error logged in /nfs/vmware/vcf/nfs-mount/vcf-download-tool/log/obtu.log

    [YYYY-MM-DD hh:mm:ss.xxx] Caused by: com.vmware.evo.sddc.lcm.tools.bundletransfer.exception.BundleTransferUtilityException: Failed to create token. API status code 0. API response null
    :
    [YYYY-MM-DD hh:mm:ss.xxx] Caused by: com.vmware.cloud.foundation.rest.commonsvcs.runtime.ApiException: javax.net.ssl.SSLPeerUnverifiedException: Hostname <IP ADDRESS/FQDN> not verified:
    [YYYY-MM-DD hh:mm:ss.xxx]     certificate: sha256/xCdpOKQR+NGAzqPjkxNWmQL0PDbiopoLInPcolj6PyU=
    [YYYY-MM-DD hh:mm:ss.xxx]     DN: CN=<IP ADDRESS/FQDN>, OU=VMware Engineering, O=VMware, L=Palo Alto, ST=California, C=US
    [YYYY-MM-DD hh:mm:ss.xxx]     subjectAltNames: []
    [YYYY-MM-DD hh:mm:ss.xxx]       at com.vmware.cloud.foundation.rest.commonsvcs.runtime.ApiClient.execute(ApiClient.java:711)
    :
    


Environment

VMware Cloud Foundation

Cause

SDDC Manager Certificate does not have subjectAltNames.
SDDC Manager Certificate require subjectAltNames.

Resolution

Regenerate SDDC Manager certificate with valid subjectAltNames entries.

Additional Information

Similar issue published below:

VCF Download Tool Error: Failed to create token. API status code 0. API response null

Uploading files and binaries using VCF Download tool fails with ERROR: Failed to create token. API status code 0. API response null