After Openssl generated the certificate, it did not work in nodejs and reported an error of’ CERT_NOT_YET_VALID’.

  node.js, question

clipboard.png
These certificates were generated separately;

clipboard.png
Js as shown in the figure;

clipboard.png
Js on the client.js side;
The server is started and accessed by client, but such an error is reported. now I feel that there may be a problem in generating the certificate. please help me if the certificate is generated correctly.
The environment of the certificate is openssl, CentOS.

clipboard.png

This is the certificate on Firefox:

clipboard.png

Configuration of certificates:

clipboard.png

clipboard.png

clipboard.png

Ca certificate:
—–BEGIN CERTIFICATE—–
MIICPzCCAagCCQDfQgbZ05u7HzANBgkqhkiG9w0BAQUFADBkMQswCQYDVQQGEwJD
TjEQMA4GA1UECAwHVGlhbkppbjEQMA4GA1UEBwwHVGlhbkppbjELMAkGA1UECgwC
TEQxCzAJBgNVBAsMAklUMRcwFQYDVQQDDA5sb2NhbGhvc3Q6MzAwMDAeFw0xNTEx
MzAxNTE1MDdaFw0xNTEyMzAxNTE1MDdaMGQxCzAJBgNVBAYTAkNOMRAwDgYDVQQI
DAdUaWFuSmluMRAwDgYDVQQHDAdUaWFuSmluMQswCQYDVQQKDAJMRDELMAkGA1UE
CwwCSVQxFzAVBgNVBAMMDmxvY2FsaG9zdDozMDAwMIGfMA0GCSqGSIb3DQEBAQUA
A4GNADCBiQKBgQDPIZTz/rzrhuE4ae 4aeplus kh2Mym2u7coXHRCf2u6O3M plus F2CB4gxDgg
VywoVBpkYQ plus oudngyzg7Boa/yVp8ZiIv3I7y6otA plus SiocxyxqguUk6lGQyWohguB
Tgl2d30kYqmJjZfVSwAn2Re0reMMFjvxTProZuC6fjlvvp9qxlr0IOMDIQIDAQAB
MA0GCSqGSIb3DQEBBQUAA4GBAEEP7nO3N1GGUCREcIa/VNOGM9YNRaLzRPteWT5W
Q7vztyea/lmxzd2 gajumo 35tri6wmctnlid 7nrqfr9ln 2icecwffd02fffo plus v plus Xn
rAbpZW1y5QMKG8MHhRzjkmVdLJ/JCrqX3UDqKudk8Hr5tc6/D43QGWONaxh4r9S7
zaO9
—–END CERTIFICATE—–

Server certificate:

—–BEGIN CERTIFICATE—–
MIICPzCCAagCCQDEIzg9MlH5dzANBgkqhkiG9w0BAQUFADBkMQswCQYDVQQGEwJD
TjEQMA4GA1UECAwHVGlhbkppbjEQMA4GA1UEBwwHVGlhbkppbjELMAkGA1UECgwC
TEQxCzAJBgNVBAsMAklUMRcwFQYDVQQDDA5sb2NhbGhvc3Q6MzAwMDAeFw0xNTEx
MzAxNTE3NTVaFw0xNTEyMzAxNTE3NTVaMGQxCzAJBgNVBAYTAkNOMRAwDgYDVQQI
DAdUaWFuSmluMRAwDgYDVQQHDAdUaWFuSmluMQswCQYDVQQKDAJMRDELMAkGA1UE
CwwCSVQxFzAVBgNVBAMMDmxvY2FsaG9zdDozMDAwMIGfMA0GCSqGSIb3DQEBAQUA
A4GNADCBiQKBgQDUvSY4NgOUuklnF2UUobG0SdP19hcx5ngVjfkqgaQrUKNfiSIn
K1NV5XUo5txHOty/qltg7M89v plus exIkX92C1FkvZOLMGmYuA plus HHrKsxF6 plus WLIT7F4
uDYAf9GZZXH3dbrLu31xlfraqgX8OQjWgMUdDpZQS6nN7mI1EdAwrfJqTwIDAQAB
Ma 0 gcsqgsib 3 dqebbquaa4gak plus r4sli7 iabprusr 11 czmuccdt 2u a4l2 gg0 pnkc
8 vzx6 raiqjfidxc13 mwf4b r3ies fling 60xqec 8hptfu 9kg4yq plus 8yp71D7ykC2ig
D 44 smiljmnmnhna1 r64zgxvlnsaf3 pn e0ymm02 bhmaybvbmzrlxhizfzgd3 plus ZJMV
PGAB
—–END CERTIFICATE—–

Client certificate:
—–BEGIN CERTIFICATE—–
MIICPzCCAagCCQDEIzg9MlH5djANBgkqhkiG9w0BAQUFADBkMQswCQYDVQQGEwJD
TjEQMA4GA1UECAwHVGlhbkppbjEQMA4GA1UEBwwHVGlhbkppbjELMAkGA1UECgwC
TEQxCzAJBgNVBAsMAklUMRcwFQYDVQQDDA5sb2NhbGhvc3Q6MzAwMDAeFw0xNTEx
MzAxNTE2NDVaFw0xNTEyMzAxNTE2NDVaMGQxCzAJBgNVBAYTAkNOMRAwDgYDVQQI
DAdUaWFuSmluMRAwDgYDVQQHDAdUaWFuSmluMQswCQYDVQQKDAJMRDELMAkGA1UE
CwwCSVQxFzAVBgNVBAMMDmxvY2FsaG9zdDozMDAwMIGfMA0GCSqGSIb3DQEBAQUA
A4GNADCBiQKBgQDpo6GgDIKSU0/0qxaa6k4p8YRkhIfcmy/GAdrnRJSc2DHZFhmt
IrBGfDOgRC855EU plus 7koCGmVGeIatCUXxnRjGL plus dp7pz2ZfDpyzeW4RhFDpDhwdFl
yqOSqpdkKHcJCOFyJnC9168WCqLRBMwOYcEeYdIteMNMEqWTL45lRJblQQIDAQAB
Ma 0gcsqgsib 3dqebbquaa4gbah2baqfa 6yslxlnlja plus UeFSmUvmau5eU9/oSmzeD
Cttyybo 9jbt55ew1y7obiabadhaz 8y3gkqbdflzj97vzv/6n22w7d9 plus B3IM1xVPZ
Nw6ox 3vz3 lfmclalqjeiwf 1 sjytwiiquxkjzwt 3 wgfhez 2inqy/krpj+Siap+s
C3dB
—–END CERTIFICATE—–

Post the certificate to see if it will take effect in the future. Or is your client’s system time in the past? When you generated the certificate, was the system time correct?dateCan you post the output?