SRX

 View Only
last person joined: yesterday 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  SRX LetsEncrypt Re-newed Cert causes Juniper Secure Connect failure - Errors 2002 and 2104

    Posted 09-01-2024 14:36
    Edited by bkamen 09-01-2024 14:38

    Hey all,

     One of the SRX300's I help someone with renewed its LetsEncrypt cert this weekend and promptly Juniper Secure Connect stopped working.

    The two errors that the client show are:
       2002: unable to get issuer certificate
       2104: unable to get ca issuer certificate

    So I completely re-enrolled a new cert from scratch - switched the SRX web management to that cert.... REstarted the web-management and tried again. (didn't help) and then rebooted the SRX300 -- also didn't help. 

    Both certificates (recently enrolled and newly created cert) both seem to work fine when pointing a browser @ SRX HTTPS interface -- and upon inspection show expected information for validity.

    Searching for JSC 2002 error gives me a KB article that doesn't help.  (https://supportportal.juniper.net/s/article/SRX-JSC-client-unable-to-get-issuer-certificate)
    Searching for JSC 2104 error yields no results. (anything points back to the 2002 error which already didn't help)

    So I'm stuck. Can't tell if this is an SRX issue or JSC issue. 

    (I'd open a JTAC case, but client's JTAC recently renewed but was delayed and I'm in the between space of the renewal.)

    Thanks!

    ------------------------------
    Ben Kamen
    ------------------------------



  • 2.  RE: SRX LetsEncrypt Re-newed Cert causes Juniper Secure Connect failure - Errors 2002 and 2104

    Posted 09-06-2024 14:12

    If you're manually copying cert files to the SRX, have you tried including the entire certificate chain (device cert, intermediate cert, root cert) in the file as opposed to just the device cert? I don't remember what order they were supposed to go in though ... maybe root at the bottom ... or was it at the top ... not sure ...



    ------------------------------
    Nikolay Semov
    ------------------------------



  • 3.  RE: SRX LetsEncrypt Re-newed Cert causes Juniper Secure Connect failure - Errors 2002 and 2104

    Posted 09-06-2024 15:08

    This is all being done on the SRX using the JunOS built-in method for handling ACME/LE certs. 

    I have a ticket open with Juniper now... so they can figure out what broke. 

    (I've literally followed the step-by-step out of the knowledgebase that got me here. Gah)

    Anyway - I'll post the fix when we figure it out. 



    ------------------------------
    Ben Kamen
    ------------------------------



  • 4.  RE: SRX LetsEncrypt Re-newed Cert causes Juniper Secure Connect failure - Errors 2002 and 2104
    Best Answer

    Posted 09-11-2024 10:05

    It turns out - what you mentioned was a derivative of this. (no thanks to JTAC - they were still scratching their heads when I figured this out)

    So - LetsEncrypt ADDED some sub-CA servers in the path. 

    Those needed to be added to the SRX... but then also to the JSC client. 

    What bothers me is that originally when all set up - 2 of the upstream cert (.DER) files automagically ended up on the JSC Client's ProgramData folder (in 'cacerts').

    I didn't do that. JSC did. 

    I stepped through adding the sub-CAs to the SRX first to see if they propagated to the JSC client -- they don't seem to. 

    JTAC seems to agree - that's a problem. I should be able to do all the work on the SRX and have it propagate. 

    Oh well. 

    It's working now -- but it's also annoying because the SRX LetsEncrypt documentation is fair at best and when running into items like this, the KB info falls far short of properly informing the admin. JTAC is going to fix that. 

    And so that's what it was.... 

    Problem solved.



    ------------------------------
    Ben Kamen
    ------------------------------



  • 5.  RE: SRX LetsEncrypt Re-newed Cert causes Juniper Secure Connect failure - Errors 2002 and 2104

    Posted 09-11-2024 10:17

    Sounds like a nasty surprise, especially if you have many clients... Glad you got it working, and thanks for posting the update.



    ------------------------------
    Nikolay Semov
    ------------------------------



  • 6.  RE: SRX LetsEncrypt Re-newed Cert causes Juniper Secure Connect failure - Errors 2002 and 2104

    Posted 09-11-2024 10:25

    Sure thing.

    Worth posting for others to see -- because (as I didn't really highlight in my last reply) - The additional sub-CA servers were a change from the last time the cert on the SRX was re-newed 3mo ago. 

    Like - literally a matter of weeks after the renewal in June, Let's encrypt added/changed the sub-CAs. 

    Yea - not a lot of clients - maybe a dozen. 

    JTAC still agrees the documentation is lacking because checking the new cert against, say, firefox which has its own store and checks the cert just fine, presents confusion to the admin like me because of those auto-checking mechanisms which it seems the SRX might have but the KB setup guide doesn't discuss at all. 

    At some point, I need to play with the settings to make it more resilient if possible... but the fact all the caveats aren't in the docs is frustrating.



    ------------------------------
    Ben Kamen
    ------------------------------



  • 7.  RE: SRX LetsEncrypt Re-newed Cert causes Juniper Secure Connect failure - Errors 2002 and 2104

    Posted 09-06-2024 14:44

    The client side does not use the machine cert store.  You need to add the cert chain to the app, see: https://www.juniper.net/documentation/us/en/software/secure-connect/secure-connect-user-guide/topics/topic-map/overview-juniper-secure-connect-client.html

    Under your client type it will tell you the directory the very chain needs to be in...



    ------------------------------
    David Divins
    ------------------------------