Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3019

Unable to install my own PKCS12 certificate for SAP Business One 9.2

$
0
0

I have recently installed SAP Business One 9.2 PL00 and would like to enable web browser access.

 

During the SAP Business One BAS Gatekeeper installation, it has an option to use either my own PKCS12 certificate or the SAP self-generated certificate.

 

Even when I specify my own certificate, the installation still installs the SAP self-generated certificate (which can be seen in the web browser).

 

I also try installing the certificate in C:\Program Files\SAP\SAP Business One BAS GateKeeper\cert and modify C:\Program Files\SAP\SAP Business One BAS GateKeeper\tomcat\conf\server.xml accordingly. I keep getting the error when tomcat starts:

Caused by: java.io.IOException: failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block not properly padded

    at sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1968)

    at java.security.KeyStore.load(KeyStore.java:1433)

    at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:429)

    at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:328)

    at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:586)

    at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:526)

    at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:495)

    at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:651)

    at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)

    at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)

    at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)

    ... 13 more

Caused by: javax.crypto.BadPaddingException: Given final block not properly padded

 

I can use keytool to read my PKCS12 certificate property so I know I have a good password and the certificate is valid.

 

What is the proper way to install my own PKCS12 certificate?


Viewing all articles
Browse latest Browse all 3019

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>