我正在 Windows 上安装 EJBCA。
操作系统版本:Windows Server 2016
Java:OpenJDK 8.0.242.08 Ant:ant 1.9.14
数据库:MariaDB 10.4.12
服务器:Wildfly 10.1.0
EJBCA 版本:6.15.2
使用此https://doc.primekey.com/ejbca6152/ejbca-installations/ejbca-main-installation手册进行安装。
不幸的是,该命令ant deploy-keystore
提供了此错误:
吉:部署信任库:
BUILD FAILED
c:\ejbca\build.xml:844: The following error occurred while executing this line:
c:\ejbca\bin\jboss.xml:310: The following error occurred while executing this line:
c:\ejbca\bin\jboss.xml:294: Missing JKS truststorestore file in 'c:\ejbca/p12/truststore.jks'
它有一个相应的错误(我认为它们是相关的):
ejbca:javatruststore:
[input] skipping input as property ca.name has already been set.
[echo] Getting root certificate in DER format...
[echo] ca getcacert "ManagementCA" C:\Users\tsaForFN\AppData\Local\Temp\2\/rootca.der -der
[java] Wrote CA certificate to 'C:\Users\tsaForFN\AppData\Local\Temp\2\/rootca.der' using DER encoding.
[echo] Adding to or creating keystore: c:\ejbca/p12/truststore.jks
ejbca:javatruststore-removeold:
[exec] keytool error: java.lang.Exception: Input not an X.509 certificate
[exec] java.lang.Exception: Input not an X.509 certificate
[exec] at sun.security.tools.keytool.Main.addTrustedCert(Main.java:2861)
[exec] at sun.security.tools.keytool.Main.doCommands(Main.java:1050)
[exec] at sun.security.tools.keytool.Main.run(Main.java:366)
[exec] at sun.security.tools.keytool.Main.main(Main.java:359)
[exec] Result: 1
[delete] Deleting: C:\Users\tsaForFN\AppData\Local\Temp\2\rootca.der
我试图改变斜线,但它仍然没有奏效。
这是 Wildfly 服务器的日志
https://controlc.com/bb5d54f4
这是 EJBCA 安装的日志
https://controlc.com/f6f062d2
属性是默认的,除了数据库,它现在已配置、工作且不相关。