Symptom
You open the SAP Business One Web Client URL and the login page appears. After you enter your credentials, the Web Client shows this error instead of the start page:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to request.Cause
The system was installed with Enable certificate verification selected. With this option, the SAP Business One services check each other's SSL certificates. The check fails when the certificate chain cannot be traced back to a trusted root, for one of these reasons:
- The root CA certificate is not in the Trusted Root Certification Authorities store of the server.
- The
.pfxfile used during installation does not contain all intermediate certificates, or they are not in the correct order.
Who is affected
All of the following must apply:
- You use SAP Business One 10.0 or SAP Business One 10.0, version for SAP HANA.
- Certificate verification was enabled during installation.
- The certificate comes from your own or a commercial CA and the chain is incomplete on the server.
Solution
- Import the root CA certificate. On the server, open the certificate store of the local computer (
certlm.msc) and import the root certificate under Trusted Root Certification Authorities → Certificates. - Check the chain inside the .pfx file. Open a command prompt and run:
certutil -p PfxPassword -dump "C:\path\to\certificate.pfx"- Check the order of the certificates. According to RFC 5280, a certification path is an ordered list that starts with the server certificate. Each following certificate must be the one that signed the previous one:
- The server (leaf) certificate, issued to your host name or domain
- The intermediate CA certificate(s) that signed it
- Optionally, the root CA certificate
- Replace an incomplete certificate. If intermediates are missing or the order is wrong, export the certificate again as a
.pfxwith the complete certification path. Then update the certificate on the SAP Business One server components as described in SAP Note 3537223.
Confirm the result
- Run the
certutilcommand on the new file. All certificates of the chain appear, starting with the server certificate. - Open the Web Client URL and log on. The start page opens without the PKIX error.
- Also open the SLD control center and Service Layer in the browser. They should show a valid certificate without warnings.