VMware Cloud Community
mihkel
Contributor
Contributor
Jump to solution

0 byte certificate file in vcsa

Question about certificates in vcenter. When I download all certificates via https://vcsa-fqdn/certs/download.zip then I see one 0 byte file in it? According to https://kb.vmware.com/s/article/59555 I DO NOT have any corrupted certificates.

vcsa # ls -l /etc/vmware-vpx/docRoot/certs/

also shows on 0 byte file (among 4 other files)

This 0 byte file causes issues when importing certificates to third party systems. In particular case vxrail manager.

Why download.zip contains one 0 byte certificate? Is it safe just to delete that 0 byte file from /etc/vmware-vpx/docRoot/certs/ folder

 

Reply
0 Kudos
1 Solution

Accepted Solutions
Ajay1988
Expert
Expert
Jump to solution

Can you share the output from : ls -l /etc/vmware-vpx/docRoot/certs/
Also the VC version and build ?


I think we can delete that 0 byte file (Take a VC snapshot without memory) . Mostly a corrupt file there. 

If you think your queries have been answered
Mark this response as "Correct" or "Helpful".

Regards,
AJ

View solution in original post

Reply
0 Kudos
6 Replies
Kinnison
Commander
Commander
Jump to solution

Hi,


For what has been my personal experience that depended on the used browser and on the settings of the same, either you download a file with a size equal to "zero bytes" or the said file was opened directly in the browser and the result were "hieroglyphs". At least this is what happened to me with machines running Microsoft Windows 10/11 with the stock browser installed.


In order not to waste time I ended up using a Linux virtual machine with its stock browser (Firefox).


Regrads,
Ferdinando

Reply
0 Kudos
mihkel
Contributor
Contributor
Jump to solution

No the download.zip file is not 0 byte, but one certificate file inside that zip file is 0 byte. The content of download.zip is exactly the same as files on VCSA /etc/vmware-vpx/docRoot/certs/ folder. But I do not understand why there is one 0 byte certificate file...

Reply
0 Kudos
Kinnison
Commander
Commander
Jump to solution

Hi,


Well, when I say "zero bytes" it is because the resulting downloaded file, in my specific case, contained folders with empty files.
Now, the ".zip" file you download contains certificates in three different folders, what would be the certificate that corresponds to "zero bytes", please if you tell me I don't have to guess.


Regards,
Ferdinando

 

 

 

 

Reply
0 Kudos
Ajay1988
Expert
Expert
Jump to solution

Can you share the output from : ls -l /etc/vmware-vpx/docRoot/certs/
Also the VC version and build ?


I think we can delete that 0 byte file (Take a VC snapshot without memory) . Mostly a corrupt file there. 

If you think your queries have been answered
Mark this response as "Correct" or "Helpful".

Regards,
AJ
Reply
0 Kudos
mihkel
Contributor
Contributor
Jump to solution

Content of download.zip:

$ ls -l */*
-rw-r--r--. 1 mihkel mihkel 1489 16. nov 2021 lin/28e55085.0
-rw-r--r--. 1 mihkel mihkel 0 23. märts 2022 lin/28e55085.r1
-rw-r--r--. 1 mihkel mihkel 1346 16. nov 2021 lin/c6dabfc5.0
-rw-r--r--. 1 mihkel mihkel 1505 16. nov 2021 lin/d2c873f3.0
-rw-r--r--. 1 mihkel mihkel 787 22. veebr 2022 lin/d2c873f3.r0
-rw-r--r--. 1 mihkel mihkel 1489 16. nov 2021 mac/28e55085.0
-rw-r--r--. 1 mihkel mihkel 0 23. märts 2022 mac/28e55085.r1
-rw-r--r--. 1 mihkel mihkel 1346 16. nov 2021 mac/c6dabfc5.0
-rw-r--r--. 1 mihkel mihkel 1505 16. nov 2021 mac/d2c873f3.0
-rw-r--r--. 1 mihkel mihkel 787 22. veebr 2022 mac/d2c873f3.r0
-rw-r--r--. 1 mihkel mihkel 1489 16. nov 2021 win/28e55085.0.crt
-rw-r--r--. 1 mihkel mihkel 0 23. märts 2022 win/28e55085.r1.crl
-rw-r--r--. 1 mihkel mihkel 1346 16. nov 2021 win/c6dabfc5.0.crt
-rw-r--r--. 1 mihkel mihkel 1505 16. nov 2021 win/d2c873f3.0.crt
-rw-r--r--. 1 mihkel mihkel 787 22. veebr 2022 win/d2c873f3.r0.crl

/etc/vmware-vpx/docRoot/certs/ on VCSA

# ls -l /etc/vmware-vpx/docRoot/certs/
total 16
-rwxr-xr-x 1 vmafdd-user lwis 1489 Nov 16 2021 28e55085.0
-rwxr-xr-x 1 vmafdd-user lwis 0 Mar 23 2022 28e55085.r1
-rwxr-xr-x 1 vmafdd-user lwis 1346 Nov 16 2021 c6dabfc5.0
-rwxr-xr-x 1 vmafdd-user lwis 1505 Nov 16 2021 d2c873f3.0
-rwxr-xr-x 1 vmafdd-user lwis 787 Feb 22 2022 d2c873f3.r0
 

 So the 0 byte file is 28e55085.r1

 

VCSA version: 7.0.3 Build:20395099

Reply
0 Kudos
Ajay1988
Expert
Expert
Jump to solution

delete that 0 byte file (Take a VC snapshot without memory) . Mostly a corrupt file there. 

# ls -l /etc/vmware-vpx/docRoot/certs/
-rwxr-xr-x 1 vmafdd-user lwis 0 Mar 23 2022 28e55085.r1

 

If you think your queries have been answered
Mark this response as "Correct" or "Helpful".

Regards,
AJ
Reply
0 Kudos