HTML5GW and PSM and IgnoreCertificateVerification

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

HTML5GW and PSM and IgnoreCertificateVerification

L4 Transporter

Hi, the only way we have been able to successfully configure HTMl5GW and PSM on v14.2 is with the above set to True, with this connection fails with assigned certs we get "certicate verification failure "unable to get local issuer certificate (20) at stack position 1.

3 questions on this:

1) Has anyone seen this error before?

2) Any insight into the meaning of position 1?

3) Has anyone been able to get this work with above setting = false?

 

We are using v14.2.

 

We seem to be experiencing a difference in outcome with the cert verification within the host which verifies OK, but a different outcome with the container, differences seen on the certificate handshake?

 

Thanks in advance for any info/suggestions.

 

13 REPLIES 13

L3 Networker

Hi @Stephen Clarke​,

Had some issues when connecting with 14.2 as well turned out the root/intermediate trust wasn't in order when you launch your html5 gateway with debug levels raised are all certificates loaded without errors?

For me turned out the certificate wasn't imported correctly when starting the container, needed to add the address as SubjectAltName.

L3 Networker

Hi @Stephen Clarke​,

Had some issues when connecting with 14.2 as well turned out the root/intermediate trust wasn't in order when you launch your html5 gateway with debug levels raised are all certificates loaded without errors?

For me turned out the certificate wasn't imported correctly when starting the container, needed to add the address as SubjectAltName.

L4 Transporter

Inside container verification fails with error above, on host verification is OK, same openssl command to check,

L4 Transporter

Trust not in order in what sense?

 

L4 Transporter

our SAN has the servername, the FQDN and LB name.

L3 Networker

Have you launched the html5gw with the options PSMGWAppLogLevel and PSMGWGuacLogLevel on debug to see if errors occur when it's first launched?

L3 Networker

Have you launched the html5gw with the options PSMGWAppLogLevel and PSMGWGuacLogLevel on debug to see if errors occur when it's first launched?

L4 Transporter

Yes, that how we got the stack position 1 error above.

 

 

L4 Transporter

Usually means that the PSM server (or loadbalancer) presents only its server certificate on the RDP port - without any intermediate certificates. And since your PSM GW container only knows about the root CA, it can't complete the chain between server cert -> intermediate CA cert -> root CA cert, and therefore can't validate that the server cert is issued by a trusted CA. This is solved by adding the intermediate CA cert to the file that contains the trusted root CAs, which you pass to the container.

 

I have had the best experience, when using the following file content when launching a PSM GW container:

  • GWCert parameter: Points to a PEM-formatted certificate file which contains the server certificate of the PSM GW, and all intermediate CA certificates, but not the root CA certificate.
  • GWKey parameter: Points to a PEM-formatted private key file. Can have a passphrase, but that sometimes causes issues when restarting the container.
  • GWCAFile parameter: Points to a PEM-formatted certificate file which contains all root CA certificates that the PSM GW should trust, and all intermediate CA certificates which are required (meaning, the root CA and all intermediates that signed the PVWA server cert, and same for the PSM server certs), but not the PVWA/PSM server certificates themselves. This file should also be "world readable" outside of the container.

 

The reason why it works outside of the container, is probably that in your operating systems's certificate store, you already have the intermediate CA cert file, so openssl can complete the cert chain.

L4 Transporter

Thanks for this will cross reference the above with what we have and report back.

 

 

 

L4 Transporter

Ok, so checking in with the team on this a few questions have come back to me:

----- 2nd point, Yes have a key file and its not locked with a passphrase…which asks the question on the first point, where if the GWCert has the Certificate which requires the KEY in the 2nd point, if I cat the cert and the intermediate for this, will the key stop working?

----- 3rd point, I have the intermediate and the root, cat’d together in this order…..both were PEM formatted and readable, I can cat them and openssl them to check

 

Any thoughts on questions above?

Responses too our are much appreciated.

 

L4 Transporter

Some further clarity from us on points above.

 

Bullet 1:

I create a new bundle.crt containing the GBServer.crt and the intermediate

Edited the run string of the container, and included the new cert in the /opt/cert

Ran the container……the healthcheck still works and doesn’t complain about the cert so that part is OK….

Still get the same error message PSMGW0008E “ Something went wrong”

 

Bullet2:

Still using the key file that was used to generate the CSR…..no password/PassPhrase on the file

 

Bullet3:

This file I have run cat <Intermediate> <root> > CABundle.crt

I have edited the string for the container to point to this file

All files are brought into the container as its it the /opt/import folder inside the container.

 

Just some further clarity from the team on the config we currently have to aid in getting to an issue resolution.

 

 

 

L4 Transporter

We also see in the logs the cert imports successful to the various cert stores.

  • 819 Views
  • 13 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!