添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
近视的剪刀  ·  Certificate error ...·  6 天前    · 
风流倜傥的乒乓球  ·  Scanner certificate ...·  6 天前    · 
细心的佛珠  ·  Config API Groq · ...·  6 天前    · 
爽快的墨镜  ·  Websockets ...·  5 天前    · 
发财的黄花菜  ·  Django ForeignKey ...·  1 月前    · 
才高八斗的饺子  ·  林玮: ...·  3 月前    · 

I wanted play around with PDT but already struggle at the very beginning with the pdt.keystore.

Several keystore related error messages (see below) when trying to start PDT on a Windows Server 2022 appear and it won't start.

I am using the JRE from installed Designer 4.8.7.0100 as JAVA_HOME.

Trying to import a self signed cert in to this keystore also fails claiming keystore is invalid.

Trying to take a look using keytool the same:

.\keytool.exe -list -keystore E:\IDM-Packaging\IDM_PackageDeploymentTool_1.0.0\keystore\pdt.keystore
Enter keystore password:
keytool error: java.io.IOException: Invalid keystore format

The file "trustore" in the same directory seems to be fine and contains some default cert.

Out put from start of PDT:

.\start-pdt_win.bat
Display java version
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (Zulu 8.40.0.25-CA-win64) (build 1.8.0_222-b10)
OpenJDK 64-Bit Server VM (Zulu 8.40.0.25-CA-win64) (build 25.222-b10, mixed mode)
Starting Package Deployment Tool
INFO  [2023-11-25 17:40:50.631] [org.eclipse.jetty.util.log] Logging initialized @2183ms to org.eclipse.jetty.util.log.Slf4jLog
INFO  [2023-11-25 17:40:50.725] [io.dropwizard.server.DefaultServerFactory] Registering jersey handler with root path prefix: /
INFO  [2023-11-25 17:40:50.725] [io.dropwizard.server.DefaultServerFactory] Registering admin handler with root path prefix: /
INFO  [2023-11-25 17:40:50.725] [io.dropwizard.assets.AssetsBundle] Registering AssetBundle with name: swagger-assets for path /api/pdt/v1/swagger-static/*
INFO  [2023-11-25 17:40:50.725] [io.dropwizard.assets.AssetsBundle] Registering AssetBundle with name: swagger-oauth2-connect for path /api/pdt/v1/oauth2-redirect.html/*
INFO  [2023-11-25 17:40:51.476] [io.dropwizard.assets.AssetsBundle] Registering AssetBundle with name: assets for path /pdt/*
INFO  [2023-11-25 17:40:51.476] [com.microfocus.idm.pdtrest.util.InfinispanBundle] Running Infinispan as a standalone cache.
INFO  [2023-11-25 17:40:51.947] [org.infinispan.CONTAINER] ISPN000128: Infinispan version: Infinispan 'Triskaidekaphobia' 13.0.11.Final
INFO  [2023-11-25 17:40:52.118] [org.infinispan.CONTAINER] ISPN000556: Starting user marshaller 'org.infinispan.commons.marshall.ImmutableProtoStreamMarshaller'
INFO  [2023-11-25 17:41:36.540] [com.microfocus.idm.pdtrest.PDTApplication] Port:./keystore/truststore
WARN  [2023-11-25 17:41:36.556] [com.microfocus.idm.pdtrest.tls.KeystoreManager] Excetption while performing keystore operation
java.security.KeyStoreException: Uninitialized keystore
        at java.security.KeyStore.aliases(KeyStore.java:1233)
        at com.microfocus.idm.pdtrest.tls.KeystoreManager.validateAlias(KeystoreManager.java:62)
        at com.microfocus.idm.pdtrest.PDTApplication.setTrustStorePath(PDTApplication.java:177)
        at com.microfocus.idm.pdtrest.PDTApplication.run(PDTApplication.java:122)
        at com.microfocus.idm.pdtrest.PDTApplication.run(PDTApplication.java:69)
        at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:67)
        at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:98)
        at io.dropwizard.cli.Cli.run(Cli.java:78)
        at io.dropwizard.Application.run(Application.java:94)
        at com.microfocus.idm.pdtrest.PDTApplication.main(PDTApplication.java:75)
INFO  [2023-11-25 17:41:36.556] [com.microfocus.idm.pdtrest.tls.KeystoreManager] Generating Secret Key Info
ERROR [2023-11-25 17:41:36.587] [com.microfocus.idm.pdtrest.tls.KeystoreManager] KeyStoreException ::
WARN  [2023-11-25 17:41:36.587] [com.microfocus.idm.pdtrest.PDTApplication] Encryption mechanism not set
INFO  [2023-11-25 17:41:36.681] [io.dropwizard.server.ServerFactory] Starting Package Deployment Tool Rest API
================================================================================
                              Package Deployment Tool Rest API
================================================================================
INFO  [2023-11-25 17:41:36.806] [org.eclipse.jetty.setuid.SetUIDListener] Opened application@7f7da6ab{SSL, (ssl, http/1.1)}{0.0.0.0:8280}
INFO  [2023-11-25 17:41:36.806] [org.eclipse.jetty.setuid.SetUIDListener] Opened admin@1e19635d{SSL, (ssl, http/1.1)}{0.0.0.0:8281}
INFO  [2023-11-25 17:41:36.821] [org.eclipse.jetty.server.Server] jetty-9.4.48.v20220622; built: 2022-06-21T20:42:25.880Z; git: 6b67c5719d1f4371b33655ff2d047d24e171e49a; jvm 1.8.0_222-b10
ERROR [2023-11-25 17:41:36.848] [io.dropwizard.cli.ServerCommand] Unable to start server, shutting down
java.io.IOException: Invalid keystore format
        at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:663)
        at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:56)
        at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224)
        at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:70)
        at java.security.KeyStore.load(KeyStore.java:1445)
        at org.eclipse.jetty.util.security.CertificateUtils.getKeyStore(CertificateUtils.java:54)
        at org.eclipse.jetty.util.ssl.SslContextFactory.loadKeyStore(SslContextFactory.java:1203)
        at org.eclipse.jetty.util.ssl.SslContextFactory.load(SslContextFactory.java:322)
        at org.eclipse.jetty.util.ssl.SslContextFactory.doStart(SslContextFactory.java:244)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
        at org.eclipse.jetty.server.Server.start(Server.java:423)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
        at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
        at org.eclipse.jetty.server.Server.doStart(Server.java:387)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
        at io.dropwizard.cli.ServerCommand.run(ServerCommand.java:52)
        at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:68)
        at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:98)
        at io.dropwizard.cli.Cli.run(Cli.java:78)
        at io.dropwizard.Application.run(Application.java:94)
        at com.microfocus.idm.pdtrest.PDTApplication.main(PDTApplication.java:75)
java.io.IOException: Invalid keystore format
        at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:663)
        at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:56)
        at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224)
        at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:70)
        at java.security.KeyStore.load(KeyStore.java:1445)
        at org.eclipse.jetty.util.security.CertificateUtils.getKeyStore(CertificateUtils.java:54)
        at org.eclipse.jetty.util.ssl.SslContextFactory.loadKeyStore(SslContextFactory.java:1203)
        at org.eclipse.jetty.util.ssl.SslContextFactory.load(SslContextFactory.java:322)
        at org.eclipse.jetty.util.ssl.SslContextFactory.doStart(SslContextFactory.java:244)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
        at org.eclipse.jetty.server.Server.start(Server.java:423)
        at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
        at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
        at org.eclipse.jetty.server.Server.doStart(Server.java:387)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
        at io.dropwizard.cli.ServerCommand.run(ServerCommand.java:52)
        at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:68)
        at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:98)
        at io.dropwizard.cli.Cli.run(Cli.java:78)
        at io.dropwizard.Application.run(Application.java:94)
        at com.microfocus.idm.pdtrest.PDTApplication.main(PDTApplication.java:75)

Any ideas?

Rgds,

Matthias

Hi Geoffrey, thanks for the reply, I wasn't able to follow-up on this yet due to too many other "distractions".

I will do some more test and provide feedback afterwards.

The opinions expressed above are the personal opinions of the authors, not of OpenText. By using this site, you accept the Terms of Use. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.), Hewlett Packard Enterprise Company, or Micro Focus. As of January 31, 2023, the Material is now offered by OpenText, a separately owned and operated company. Any reference to the HP, Hewlett Packard Enterprise/HPE, and Micro Focus marks is historical in nature and the HP, Hewlett Packard Enterprise/HPE, and Micro Focus marks are the property of their respective owners.