To check the certificate and its chain
# openssl s_client -showcerts -connect google.com:443
CONNECTED(000001E8)
depth=1 C = US, ST = CA, L = LG, O = "Websense, Inc.", OU = Websense Endpoint, emailAddress = support@websense.com, CN = Websense Public Primary Certificate Authority, description = 1547271623EP@websense.com
verify error:num=19:self signed certificate in certificate chain
---
Certificate chain
0 s:/C=US/ST=California/L=Los Gatos/O=Websense, Inc./OU=Websense Triton Advance Protection Endpoint/CN=\x00*\x00.\x00g\x00o\x00o\x00g\x00l\x00e\x00.\x00c\x00o\x00m
i:/C=US/ST=CA/L=LG/O=Websense, Inc./OU=Websense Endpoint/emailAddress=support@websense.com/CN=Websense Public Primary Certificate Authority/description=\x001\x005\x004\x007\x002\x007\x001\x006\x002\x003\x00E\x00P\x00@\x00w\x00e\x00b\x00s\x00e\x00n\x00s\x00e\x00.\x00c\x00o\x00m
-----BEGIN CERTIFICATE-----
MIIOaTCCDVGgAwIBAgITMDkzOTM3MzgyODEyNjkyNTk2MTANBgkqhkiG9w0BAQsF
ADCB9jELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMQswCQYDVQQHEwJMRzEXMBUG
A1UEChMOV2Vic2Vuc2UsIEluYy4xGjAYBgNVBAsTEVdlYnNlbnNlIEVuZHBvaW50
MSMwIQYJKoZIhvcNAQkBFhRzdXBwb3J0QHdlYnNlbnNlLmNvbTE2MDQGA1UEAxMt
V2Vic2Vuc2UgUHVibGljIFByaW1hcnkgQ2VydGlmaWNhdGUgQXV0aG9yaXR5MTsw
OQYDVQQNHjIAMQA1ADQANwAyADcAMQA2ADIAMwBFAFAAQAB3AGUAYgBzAGUAbgBz
AGUALgBjAG8AbTAeFw0yMzA5MTQxNzA2NThaFw0yNDA5MTMxNzA2NThaMIGoMQsw
CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTESMBAGA1UEBxMJTG9zIEdh
dG9zMRcwFQYDVQQKEw5XZWJzZW5zZSwgSW5jLjE0MDIGA1UECxMrV2Vic2Vuc2Ug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
+E7Y0Ke+UfwGH3mRBzpA1gmP1VCRZolKv6U3ZUOR2aKsEIt1iDmOHxVAC/yj
-----END CERTIFICATE-----
1 s:/C=US/ST=CA/L=LG/O=Websense, Inc./OU=Websense Endpoint/emailAddress=support@websense.com/CN=Websense Public Primary Certificate Authority/description=\x001\x005\x004\x007\x002\x007\x001\x006\x002\x003\x00E\x00P\x00@\x00w\x00e\x00b\x00s\x00e\x00n\x00s\x00e\x00.\x00c\x00o\x00m
i:/C=US/ST=CA/L=LG/O=Websense, Inc./OU=Websense Endpoint/emailAddress=support@websense.com/CN=Websense Public Primary Certificate Authority/description=\x001\x005\x004\x007\x002\x007\x001\x006\x002\x003\x00E\x00P\x00@\x00w\x00e\x00b\x00s\x00e\x00n\x00s\x00e\x00.\x00c\x00o\x00m
-----BEGIN CERTIFICATE-----
MIIEwTCCA6mgAwIBAgIQYkH8hnDA+IlFva/MpJA8wzANBgkqhkiG9w0BAQsFADCB
9jELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMQswCQYDVQQHEwJMRzEXMBUGA1UE
ChMOV2Vic2Vuc2UsIEluYy4xGjAYBgNVBAsTEVdlYnNlbnNlIEVuZHBvaW50MSMw
IQYJKoZIhvcNAQkBFhRzdXBwb3J0QHdlYnNlbnNlLmNvbTE2MDQGA1UEAxMtV2Vi
c2Vuc2UgUHVibGljIFByaW1hcnkgQ2VydGlmaWNhdGUgQXV0aG9yaXR5MTswOQYD
VQQNHjIAMQA1ADQANwAyADcAMQA2ADIAMwBFAFAAQAB3AGUAYgBzAGUAbgBzAGUA
LgBjAG8AbTAeFw0yMjA2MTQxNjI1MTJaFw0yNzA2MjExMDU1MTJaMIH2MQswCQYD
VQQGEwJVUzELMAkGA1UECBMCQ0ExCzAJBgNVBAcTAkxHMRcwFQYDVQQKEw5XZWJz
ZW5zZSwgSW5jLjEaMBgGA1UECxMRV2Vic2Vuc2UgRW5kcG9pbnQxIzAhBgkqhkiG
9w0BCQEWFHN1cHBvcnRAd2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E-----
---
Server certificate
subject=/C=US/ST=California/L=Los Gatos/O=Websense, Inc./OU=Websense Triton Advance Protection Endpoint/CN=\x00*\x00.\x00g\x00o\x00o\x00g\x00l\x00e\x00.\x00c\x00o\x00m
issuer=/C=US/ST=CA/L=LG/O=Websense, Inc./OU=Websense Endpoint/emailAddress=support@websense.com/CN=Websense Public Primary Certificate Authority/description=\x001\x005\x004\x007\x002\x007\x001\x006\x002\x003\x00E\x00P\x00@\x00w\x00e\x00b\x00s\x00e\x00n\x00s\x00e\x00.\x00c\x00o\x00m
---
No client certificate CA names sent
Peer signing digest: SHA256
Server Temp Key: ECDH, P-384, 384 bits
---
SSL handshake has read 5437 bytes and written 334 bytes
Verification error: self signed certificate in certificate chain
---
New, TLSv1.2, Cipher is ECDHE-RSA-AES256-GCM-SHA384
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
Protocol : TLSv1.2
Cipher : ECDHE-RSA-AES256-GCM-SHA384
Session-ID: A30500005BEA0CE956CC7FA809387D0E814B207F874BA5920ADD7C29405C94CE
Session-ID-ctx:
Master-Key: 58B7C07EB89BAEA9884F4C66DF59575C78DD66547C0ADF78B3233A8E79C78AACF30F818164F86E2634B931DD9DEC465D
PSK identity: None
PSK identity hint: None
SRP username: None
Start Time: 1695309702
Timeout : 7200 (sec)
Verify return code: 19 (self signed certificate in certificate chain)
Extended master secret: yes
---
You will get an error if you have an issue in the certificate chain
Start Time: 1695309758
Timeout : 7200 (sec)
Verify return code: 21 (unable to verify the first certificate)
Extended master secret: yes
You need to verify your chain using the below command
# openssl verify -CAfile gd-class2-root.crt -untrusted gd_intermediate.crt.pem lstar2024.pem
CN = *.lstar.in
error 20 at 0 depth lookup: unable to get local issuer certificate
error lstar2024.pem: verification failed
When the certificate chain is correct please use the below command to verify
# openssl verify -CAfile gdroot-g2.crt -untrusted gdig2.crt.pem lstar2024.pem
lstar2024.pem: OK
You can user this chain of certificates.