Description

After creating a self-signed certificate, Juniper secure connect was not able to connect and showed the error 'Login: HTTPS request failed. Certificate is not yet valid' on the JSC client side.

Symptoms

Error on the JSC client application: Login: HTTPS request failed. Certificate is not yet valid

 

** Error screenshot

Solution

  • The self-signed certificate that was generated on the SRX is not valid yet.
  • Please check 'show security pki local-certificate detail' output and look for the validity section.

Validity:

Not before: 12- 3-2023 07:53 UTC <<<<<<<

Not after: 01-18-2038 15:00 UTC

 

  • Here we can see that the certificate is not valid before 12th March at 7.53 UTC
  • Users attempting to connect before validity time, 12th March 7.53 UTC will encounter this error.
  • Users are suggested to wait till the time is right so the certificate can be validated, or they can create a new certificate with modified dates for validity.
  • Another possibility is the time is not correct on the SRX. 

Modification History

2024-02-28 : Article Created