Download the file: replace localhost with vCenter IP in the url, and put token after Bearer. wget 'https://<VCIP>/cryptomanager/kms/nkp_name' --header 'Authorization: Bearer <token from step1>'
Note: To list native key provider name, run: dcli com vmware vcenter cryptomanager kms providers list
- nkp_name in the above command stands for Native Key provider name. The content between <> needs to be replaced with the actual value.