I am new to calm down, but I know such problems using digital certificates to authenticate clients.
In a document with guaranteed access, only the certificate configuration option is: JKS
RestAssured.config = RestAssured.newConfig().sslConfig(new SSLConfig("/truststore_javanet.jks", "test1234");
Convert PEM to JKS. Open it with portecle and make sure that the password is right and you have uploaded the certificate and the entire certification chain to the CA root directory. Portecle makes it easy to use the command line with a graphical user interface, and also allows you to create JKS
http:
This error ALWAYS occurs when your java client does not trust the server certificate
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
The easiest way to fix this is to include the server certificate chain in the jdk key store.
First, download server certificates by opening an https connection with your browser, for example, using chrome. It doesn't matter that it fails. Click the green lock on the toolbar> Details> View the server certificate and upload it as PEM. It is best to download it yourself to make sure that you are using the correct one. Download all certification chain certificates 
Then open jdk cacerts in JDK_HOME / jre / lib / security with portecle. The password will be "changeit". Add server certificates as trusted
Now the failed PKIX path build will disappear. If not, check the certificates and JDK you are using
source share