VMware Cloud Community
Andrew_09
Contributor
Contributor

java.io.IOException: BCFKS Keystore corrupted: MAC calculation failed

Hello,

I've been followed this section of the 4.8 Admin doc

https://docs.vmware.com/en/vCloud-Usage-Meter/4.8/Deployment-and-Administration/GUID-0D9505C0-CC2E-4...

Successfully upgraded from 4.6 to 4.8.

Then, replaced the self signed cert with internal CA signed certs. (root and intermediate, and server cert).

Completed all steps successfully, rebooted the appliance, both the normal web GUI and VAMI GUI have the correct certificates.

The error appears when i am doing the optional cleanup steps (step 7)

(This was after i rebooted the appliance)

rm -rf $NGINX_FOLDER (successful)
 
rm /opt/vmware/cloudusagemetering/platform/security/keystore.backup (successful)
 
keytool -delete -alias "usage-meter-platform-backup" -keystore /opt/vmware/cloudusagemetering/platform/security/cacerts -storetype BCFKS -providerclass org.bouncycastle.jcajce.provider.BouncyCastleFipsProvider -providerpath /opt/vmware/cloudusagemetering/platform/lib/bc-fips-1.0.2.4.jar -storepass "${TRUST_STORE_PASSWORD}"
 
At this point the error was thrown
 
java.io.IOException: BCFKS Keystore corrupted: MAC calculation failed
 
I initally went from step 6 to step 8 then step 9 and then after the reboot went and did step 7.

The appliance seems happy and is collecting data, there are no errors that i can see, but this error worries if we need to do all this again when the certs expire.

Any pointers or a resolution would be great

Regards

 

 

Labels (1)
Reply
0 Kudos
1 Reply
jrh724
Contributor
Contributor

Same issue after upgrading from 4.5 to 4.7.0.1

Reply
0 Kudos