Reputation: 459
Can someone please explain what exactly the SSL Labs test's "This server's certificate chain is incomplete" means and how to fix it? Exact steps of what I did
openssl pkcs12 -export -in cert1.pem -inkey privkey1.pem -out cert_and_key.p12 -name certificate -CAfile fullchain1.pem -caname root
keytool -importkeystore -deststorepass Pas5w0rd123 -destkeypass Pas5w0rd123 -destkeystore cert.jks -srckeystore cert_and_key.p12 -srcstoretype PKCS12 -srcstorepass Pas5w0rd123 -alias cert
keytool -import -trustcacerts -alias root -file chain1.pem -keystore cert.jks
Thanks very much in advance for your answers!
Upvotes: 1
Views: 3765
Reputation: 39281
It seems that in certificate chain is missing the certificate Let's Encrypt Authority X3.
Check that your pkcs12 really contains the private key, the public key and the certification chain. The best option is to use the GUI portecle (http://portecle.sourceforge.net/)
When creating the pkcs12 '-CAfile fullchain1.pem' should be '-certfile fullchain1.pem'.
Upvotes: 1