Corrupt license file found

Hi,


we are trying to install the management server as part of APIGEE installation with same licence file across different servers. One got successfully completed and other one is getting the error below

2018-07-17 14:22:43,330 org: env: target: contextId: action: main ERROR SERVICE.LICENSE - CryptoUtilsImpl.decrypt() : Corrupt license file found
javax.crypto.BadPaddingException: Decryption error
at sun.security.rsa.RSAPadding.unpadV15(RSAPadding.java:380) ~[na:1.8.0_161]
at sun.security.rsa.RSAPadding.unpad(RSAPadding.java:291) ~[na:1.8.0_161]
at com.sun.crypto.provider.RSACipher.doFinal(RSACipher.java:363) ~[sunjce_provider.jar:1.8.0_161]
at com.sun.crypto.provider.RSACipher.engineDoFinal(RSACipher.java:389) ~[sunjce_provider.jar:1.8.0_161]
at javax.crypto.Cipher.doFinal(Cipher.java:2165) ~[na:1.8.0_161]
at com.apigee.license.crypto.CryptoUtilsImpl.decrypt(CryptoUtilsImpl.java:71) ~[licensing-1.0.0.jar:na]
at com.apigee.license.LicenseServiceHelper.loadLicense(LicenseServiceHelper.java:176) [licensing-1.0.0.jar:na]
at com.apigee.license.LicenseServiceHelper.<init>(LicenseServiceHelper.java:47) [licensing-1.0.0.jar:na]
at com.apigee.license.LicenseServiceHelper.<clinit>(LicenseServiceHelper.java:43) [licensing-1.0.0.jar:na]
at com.apigee.license.ScheduledLicenseValidator.<init>(ScheduledLicenseValidator.java:29) [licensing-1.0.0.jar:na]
at com.apigee.license.opdk.LicensingServiceImpl.start(LicensingServiceImpl.java:40) [licensing-1.0.0.jar:na]
at com.apigee.kernel.service.deployment.ServiceDeployer.startService(ServiceDeployer.java:168) [microkernel-1.0.0.jar:na]
at com.apigee.kernel.service.deployment.ServiceDeployer.deploy(ServiceDeployer.java:71) [microkernel-1.0.0.jar:na]
at com.apigee.kernel.service.deployment.ServiceDeployer.deployDependantServices(ServiceDeployer.java:356) [microkernel-1.0.0.jar:na]
at com.apigee.kernel.service.deployment.ServiceDeployer.deploy(ServiceDeployer.java:77) [microkernel-1.0.0.jar:na]
at com.apigee.kernel.service.deployment.ServiceDeployer.deployDependantServices(ServiceDeployer.java:356) [microkernel-1.0.0.jar:na]
at com.apigee.kernel.service.deployment.ServiceDeployer.deploy(ServiceDeployer.java:77) [microkernel-1.0.0.jar:na]
at com.apigee.kernel.MicroKernel.deployAll(MicroKernel.java:190) [microkernel-1.0.0.jar:na]
at com.apigee.kernel.MicroKernel.start(MicroKernel.java:151) [microkernel-1.0.0.jar:na]
at com.apigee.kernel.MicroKernel.start(MicroKernel.java:146) [microkernel-1.0.0.jar:na]
at com.apigee.kernel.MicroKernel.main(MicroKernel.java:95) [microkernel-1.0.0.jar:na]


How come the same licence file will show as corrupted when we are installing in other servers? I have done dos2unix.exe while moving license file from windows to unix environment. any suggestion would be helpful.

thanks
Sridhar A

Solved Solved
0 3 979
1 ACCEPTED SOLUTION

@SRIDHAR ADURTHI

It might have corrupted when you moved between OS environments.

Why don't you just copy paste the contents ? It's just a simple txt file with alphanumeric characters. Just create a license.txt file in the machine where you are installing & copy paste the contents.

-------------------------------

Anil Sagar

5997-screen-shot-2017-11-23-at-75916-pm.png Learn Apigee Concepts in 4 Minutes HandsOn

View solution in original post

3 REPLIES 3

@SRIDHAR ADURTHI

It might have corrupted when you moved between OS environments.

Why don't you just copy paste the contents ? It's just a simple txt file with alphanumeric characters. Just create a license.txt file in the machine where you are installing & copy paste the contents.

-------------------------------

Anil Sagar

5997-screen-shot-2017-11-23-at-75916-pm.png Learn Apigee Concepts in 4 Minutes HandsOn

Thanks Anil. I have deleted existing file from unix machine and recreated using vi editor and copied the contents from windows to unix. still the same issue.

but one thing observed is, before the license file size was 353 bytes and after deletion and recreation, it was 348. So I thought it will fix the issue but it is not. Any other suggestions?

Apologies Anil. It worked. Thank you so much for your suggestion