我需要使用给定证书而不是别名执行DSStok:sign
请求。
<alias>certificate</alias>
我试图用 base64 字符串替换下面的一个,但在日志中出现以下错误。
信息 | http-nio-8080-exec-3 | oacxf.services.SoapSignatureTokenConnection.FAULT_OUT | FAULT_OUT
示例,原始 SOAP 请求:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tok="http://token.dss.esig.europa.eu/">
<soapenv:Header/>
<soapenv:Body>
<tok:sign>
<toBeSigned>
<bytes>wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro=</bytes>
</toBeSigned>
<digestAlgorithm>SHA256</digestAlgorithm>
<alias>certificate</alias>
</tok:sign>
</soapenv:Body>
</soapenv:Envelope>
我已经将证书添加到cacerts
文件中,但无法通过getKeys
SOAP 请求进行检索。或者另一方面,我如何将新的 p12 添加到服务器端以使其通过别名可用?