- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
11-29-2020 11:01 AM
Hello.
I'm deploying 11.6 HTML5 Gateway via Docker now.
In the scenario with organization SSL Certificates Container initialization stucks at Tomcat service starting:
INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [2,761] milliseconds
Nothing helps but Ctrl + C combination.
My command is (CSR was generated on psmgw machine and signed by my Windows CA):
sudo docker run --restart unless-stopped -ti -p 443:8443 -v /opt/cert/:/opt/import:ro --cap-drop=all --cap-add={CHOWN,DAC_OVERRIDE,FOWNER,SETGID,SETUID} -e AcceptCyberArkEULA=yes -e GWCert=psmgw.cer -e GWKey=psmgw.key -e GWCAFile=certnew.cer -e EndPointAddress=https://pvwa1.llomakin.local/passwordvault --name psmgw.llomakin.local cahtml5gw:11_06_0_8
Another one is when a PSMGW cert is enrolled by Windows CA:
sudo docker run --restart unless-stopped -ti -p 443:8443 -v /opt/cert/:/opt/import:ro --cap-drop=all --cap-add={CHOWN,DAC_OVERRIDE,FOWNER,SETGID,SETUID} -e AcceptCyberArkEULA=yes -e GWCert=psmgwcert.cer -e GWKey=html5cert.pfx -e GWCAFile=certnew.cer -e EndPointAddress=https://pvwa1.llomakin.local/passwordvault --name psmgw.llomakin.local cahtml5gw:11_06_0_8
Where psmgwcert.cer and html5cert.pfx are the same certificate (The first exported without Private key). It didn't request a Password for .pfx btw.
After cancelling and testing the connection I see ERR_CONNECTION_REFUSED error in Chrome.
I found out this KB (https://community.cyberark.com/s/article/HTML5GW-Docker-Container)
but I have no /secrets directory inside my Container.
Created it by myself but it didn't solve the problem.
Thanks in advance!
12-01-2020 08:17 AM
The problem has been solved.
The root cause was a lack of permissions on /opt/trst/tomcat folder (folder with certificates).
With these permissions PSM-HTML5 is working.certnew.pem - CA certificate;
html5cert.pfx - psmgw certificate enrolled by CA with private key;
psmgwcert.pem - psmgw certificate enrolled by CA
11-30-2020 01:31 AM
The last part of installation log is:
11-30-2020 03:07 AM
Are you sure that all your certificates and the key are in PEM format? (Has nothing to do with the file extension, btw)
11-30-2020 07:26 AM
Hello.
Today I've converted CA and PVWA/PSM (One cert for 3 nodes) certs to .PEM format and installed psmgw with .pfx key from my CA.
After that I went through this article https://community.cyberark.com/s/article/HTML5GW-Docker-Container but with keystore located at /opt/trust/tomat/keystore.
Tomcat's Server.xml:
Now I have a white screen/closed connection in Chrome and some messages in Docker console:
[PSMGW][15:14:36.290][[https-jsse-nio-8443-exec-7]][INFO ][c.c.p.m.direct.CAPSMGWDirectServlet]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] [POST]New connection arrived
[PSMGW][15:14:36.291][[https-jsse-nio-8443-exec-7]][INFO ][c.c.p.m.direct.CAPSMGWDirectServlet]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] EnableJWTValidation set to: true
[PSMGW][15:14:36.292][[https-jsse-nio-8443-exec-7]][INFO ][c.c.p.m.direct.CAPSMGWDirectServlet]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] Index.jsp is sent to client - First response is returned.
[PSMGW][15:14:36.784][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.m.t.CAPSMGWWebSocketHandShakeFilter]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] Entered WebSocketHandShakeFilter with JWT validation param set to: true
[PSMGW][15:14:36.784][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.m.t.CAPSMGWWebSocketHandShakeFilter]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] Trying to retrieve Sec-WebSocket-Protocol
[PSMGW][15:14:36.785][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.m.t.CAPSMGWWebSocketHandShakeFilter]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] 2 protocols were retrieved from Sec-WebSocket-Protocol header
[PSMGW][15:14:36.785][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.m.t.CAPSMGWWebSocketHandShakeFilter]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] PSM session UUID is retrieved.
[PSMGW][15:14:36.785][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.m.t.CAPSMGWWebSocketHandShakeFilter]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] Hostname: 172.18.22.32, and Port: 3389 for validation.
[PSMGW][15:14:36.785][[https-jsse-nio-8443-exec-9]][INFO ][c.c.tokenvalidation.CATokenValidator]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] CATV051I Received token validation request.
[PSMGW][15:14:36.791][[https-jsse-nio-8443-exec-9]][INFO ][c.c.tokenvalidation.CATokenValidator]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] CATV064I Validation ended successfully, Username:vaultadmin01.
[PSMGW][15:14:36.795][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.m.t.CAPSMGWWebSocketHandShakeFilter]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] JWT token was succesfully validated. Username: vaultadmin01
[PSMGW][15:14:36.795][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.m.direct.CAPSMGWDirectServlet]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] Adding CSRF token to session
[PSMGW][15:14:36.795][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.m.direct.CAPSMGWDirectServlet]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] CSRF token will be passed via cookie.
[PSMGW][15:14:36.795][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.m.t.CAPSMGWWebSocketHandShakeFilter]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] CSRF cookie was created and added to response.
[PSMGW][15:14:36.797][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.modules.tunnel.CAPSMGWTunnel]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] Starting new connection to guacd with UUID = 0efcd595-c120-433b-8046-70d6c38cf307
[PSMGW][15:14:36.797][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.modules.tunnel.CAPSMGWTunnel]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] ClipboardControl = Bidirectional
[PSMGW][15:14:36.797][[https-jsse-nio-8443-exec-9]][INFO ][c.c.p.modules.tunnel.CAPSMGWTunnel]: [30ACA1A7B67DFB3D8E72083362268D4D879A4317A628E701B4A66181A3B26CFB] Trying to connect to guacd and perform handshake.
[PSMGW][15:14:36.798][[https-jsse-nio-8443-exec-9]][ERROR][o.a.g.w.GuacamoleWebSocketTunnelEndpoint]: Creation of WebSocket tunnel to guacd failed: Connection to guacd is closed.
Tomcat logs in the time of stopping:And starting:
Also I cannot stop/restart guacd to change log_level from INFO to DEBUG.
[root@6e1c3b35e6c2 PSMGWDockerInstallation]# sudo service guacd stop
Stopping guacd: FAIL
12-01-2020 08:17 AM
The problem has been solved.
The root cause was a lack of permissions on /opt/trst/tomcat folder (folder with certificates).
With these permissions PSM-HTML5 is working.certnew.pem - CA certificate;
html5cert.pfx - psmgw certificate enrolled by CA with private key;
psmgwcert.pem - psmgw certificate enrolled by CA
12-08-2021 01:25 PM
@l.lomakin Hi, I am running into issues after deploying the HTML5 GW docker. When I initiate connection via new GW server to a target server, I get error "Err_connection_Timeout". Could you please let me know if you were able to successfully install HTML5GW via docker.
12-08-2021 01:25 PM
@Leonid Lomakin Hi, I am running into issues after deploying the HTML5 GW docker. When I initiate connection via new GW server to a target server, I get error "Err_connection_Timeout". Could you please let me know if you were able to successfully install HTML5GW via docker.
12-10-2021 01:54 AM
Hello.
Is your error exactly "Err_connection_Timeout"?
Maybe there is no network connectivity or container is not running? Can you open this page in browser? You need these ports to be opened:
443 from User to HTML5
3389 from HTML5 to PSM
If the error is ERR_CONNECTION_REFUSED then check this article please https://community.cyberark.com/s/article/HTML5GW-Docker-Container
12-10-2021 07:14 AM
@l.lomakin Yes the error is "Err_connection_Timeout". I will work on the proposed solution and let you know. Thanks.
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!

