After upgrading Aria Automation Orchestrator to VCF Operations Orchestrator 9.0 or 9.1.0, attempts to create or export packages within the VCF Operations Orchestrator UI fail. The interface displays a red error banner at the top of the screen reading ! 500, OK with a secondary pink error box reading [object Object].
When you attempt to export a package it fails and the following error is seen in the logs:
java.lang.NullPointerException: Cannot invoke "java.security.cert.X509Certificate.getIssuerX500Principal()" because "c" is null
at ch.dunes.crypto.KeyStoreManager.getPrincipal(KeyStoreManager.java:1070)
at ch.dunes.crypto.KeyStoreManager.getSelfName(KeyStoreManager.java:804)
at ch.dunes.model.pkg.impexp.PackageFileManager2.createMetaInfEntry(PackageFileManager2.java:585)
at ch.dunes.model.pkg.impexp.PackageFileManager2.writePackage(PackageFileManager2.java:172)
at com.vmware.o11n.service.impl.PackageImportServiceImpl.getExportDataForPackage(PackageImportServiceImpl.java:265)This issue occurs due to a missing or corrupted package signing certificate within the Orchestrator internal keystore. When the backend service attempts to sign the newly created package, it fails to retrieve the certificate, resulting in a NullPointerException and generating the 500 Internal Server Error.
Servlet.service() for servlet [restServlet] threw exception
java.lang.NullPointerException: Cannot invoke "java.security.cert.X509Certificate.getIssuerX500Principal()" because the return value of "ch.dunes.model.client.IVSOFactoryClient.getSelfCertificate()" is null
at com.vmware.o11n.web.packages.PackageController.lambda$createPackage$5(PackageController.java:293)
This issue is under review with Broadcom Engineering. Subscribe to this knowledge article to get updates on this issue.
To resolve this issue, you must recreate the corrupted keystore and generate a new package signing certificate using the built-in Orchestrator workflows.
VCF Operations Orchestrator UI.Workflows > Library > Configuration > Keystores.Delete a keystore workflow.Dunes keystore and submit the run.Workflows > Library > Configuration.Generate Package Signing Certificate workflow.Common name parameter. Leave all other parameters at their default values and submit the run.