DX NetOps

 View Only
Expand all | Collapse all

keytool error: java.lang.Exception: Failed to establish chain from reply

  • 1.  keytool error: java.lang.Exception: Failed to establish chain from reply

    Posted Apr 30, 2025 01:32 PM
    Hi Everyone.
     
    For a renew of certificate of the portal NFA, i generated the CSR with the "nfa-applyhttps-tool", now, I am installing the certificate, but this procedure, generate a failed...

    What am i doing bad ?



  • 2.  RE: keytool error: java.lang.Exception: Failed to establish chain from reply

    Broadcom Employee
    Posted Apr 30, 2025 02:04 PM

    You need to do step 3, to import the CA's root and any intermediate certs into truststore.

    keytool can't complete the chain from the signed cert to the owner that signed it (aka root ca).

    Give each root/intermediate a new alias when importing into trust.

    Then redo the step 6.




  • 3.  RE: keytool error: java.lang.Exception: Failed to establish chain from reply

    Posted Apr 30, 2025 02:26 PM
    Edited by Miller Echagarreta Apr 30, 2025 02:32 PM

    Hi Jefrrey, but the root and intermediate was imported 3 year old when installed the certificate, right now i only need to change the certificate for renew. In this case, is it necessary to apply root and intermediary again ?



  • 4.  RE: keytool error: java.lang.Exception: Failed to establish chain from reply

    Broadcom Employee
    Posted Apr 30, 2025 03:04 PM

    Did it maybe get signed by a diff CA this time?

    You can do:
    keytool -printcert -file <newsignedcert.cer>

    See who the Issuer is.
    Then find the Java lib/security/cacerts file.  Run:
    keytool -list -keystore cacerts -storepass changeit -v | grep "<part of issuer string from printcert>"

    See if the issuer cert is in cacerts.




  • 5.  RE: keytool error: java.lang.Exception: Failed to establish chain from reply

    Broadcom Employee
    Posted Apr 30, 2025 03:15 PM

    Miller,

    The Root and Intermediate certificates often change and if not, during upgrades, CACERTS truststore gets deleted. 

    You can use option 3 to import the root and intermediate certs into CACERTS and then run option 6 again to complete the keystore file you are trying to build.

    Thanks,

    Justin Signa




  • 6.  RE: keytool error: java.lang.Exception: Failed to establish chain from reply

    Posted Apr 30, 2025 05:22 PM

    Yes, was necessary import with the option 3 the root and intermediate certificate. So the certificate of the portal was installed with the option 6.

    Now, i think tha i need configure the IIS for use the certificate right ? I am using the option 1 (setup HTTPS) and the option 2 (Use an IIS installed certificate), but the new certificate not appear..

    Do I need to take any action before configuring the certificate in IIS? Or is it not necessary? I just restart the NFA services and the certificate will be applied?




  • 7.  RE: keytool error: java.lang.Exception: Failed to establish chain from reply

    Broadcom Employee
    Posted Apr 30, 2025 06:14 PM

    Miller,

    You can either use option 1 as a pfx option where you just point it the file or you can import the pfx into IIS/Windows Cert Store and then use the IIS option 2 to select right from the IIS/Windows certificate store.

    If you have any issues, tomorrow we can do a call.

    Thanks, 

    Justin Signa 




  • 8.  RE: keytool error: java.lang.Exception: Failed to establish chain from reply

    Posted Apr 30, 2025 06:59 PM

    Thanks Justin...

    Only applied the option 1 with pfx file. Question: Is necessary run the option 2 for IIS ?

    I see that NFA is working with the new certificate.




  • 9.  RE: keytool error: java.lang.Exception: Failed to establish chain from reply

    Broadcom Employee
    Posted May 01, 2025 09:22 AM

    Nice job.

    At this point you are likely done. One thing is that I don't know if NFA was set up to use RIB/OData/SOAP HTTPS? 

    If not, this may be something to consider.

    To determine if you are already using RIB/OData/SOAP HTTPS, just let me know if ApplyHTTPS prompted you for the FQDN or not during the PFX option. If not you are likely just running with IIS/SSO in HTTPS. We can touch more on this once you get back to me if the Tool prompted you for FQDN or not. Feel free to upload the log output here as well.

    Thanks,

    Justin Signa




  • 10.  RE: keytool error: java.lang.Exception: Failed to establish chain from reply

    Posted May 02, 2025 10:12 AM

    HiJustin, yes I see that with the option PFX requested the FQDN

    Now, what do you recommend ?




  • 11.  RE: keytool error: java.lang.Exception: Failed to establish chain from reply

    Broadcom Employee
    Posted May 03, 2025 01:00 AM

    Miller, 

    NFA side is all set up for full https.

    You can go to the NetOps Portal and go to the Administration, Data Sources page. Edit the NFA data source and make sure the checkbox is set so both the data source and website use 1 set of parameter. Make sure nfa is being contacted via the name you used for ApplyHTTPS or another resolvable name found within the certificates Subject Alternative Names. The scheme should be https and port 443. Make sure the test works. If it does, hit save and you're done.

    Thanks,

    Justin Signa