When trying to create an agent installation package using the Agent Packaging feature of the Enforce Console an error "Failed to generate agent installer packages. Try again later." is thrown.
The following exception can be found in the tomcat localhost log which by default is located in C:\ProgramData\Symantec\DataLossPrevention\EnforceServer\<version>\logs\tomcat:
Replace <version> with the currently running DLP release version. Note that this is a shortened extract of the exception.
com.vontu.communication.transport.exception.CertificateException: Error generating client truststore Keystore was tampered with, or password was incorrectcom.vontu.communication.transport.exception.CertificateException: Error generating client truststore Keystore was tampered with, or password was incorrect
at com.vontu.communication.transport.CertificateGenerator.generateClientTruststore(CertificateGenerator.java:674)
...
Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:792)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:57)
at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224)
at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:71)
at java.security.KeyStore.load(KeyStore.java:1445)
at com.symantec.dlp.util.keystore.KeystoreEntry.<init>(KeystoreEntry.java:59)
at com.symantec.dlp.util.keystore.KeystoreEntry.<init>(KeystoreEntry.java:50)
at com.vontu.communication.transport.CertificateGenerator.getListOfAliasesFromKeystore(CertificateGenerator.java:407)
at com.vontu.communication.transport.CertificateGenerator.generateClientTruststore(CertificateGenerator.java:654)
... 352 more
Caused by: java.security.UnrecoverableKeyException: Password verification failed
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:790)
... 360 more
Password mismatch of DLP_Default_Truststore.jks and it's corresponding entry in the database.
To resolve the issue follow the steps listed below:
After a while the DLP_Default_Truststore.jks file will be automatically recreated. Once the Symantec DLP services are running and the JKS is back in the keystore directory attempt to generate the agent package again.