HTML5 Docker - WARNING: CERTIFICATE NAME MISMATCH!
101
Created On 11/10/26 10:57 AM - Last Modified 11/10/26 15:54 PM
Symptom
When using CA signed certificate, initiating a PSM HTML5 session through PVWA the new web page tab opens but then closes straight away.
Checking the docker logs for the HTML5 container “sudo docker logs <Contain-ID>”
The below error is seen in the docker logs.
===
connected to A51DEA20.orbit.Domain.com:3389
creating directory /root/.config/freerdp
creating directory /root/.config/freerdp/certs
creating directory /root/.config/freerdp/server
certificate_store_open: error opening [/root/.config/freerdp/known_hosts] for writing
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: CERTIFICATE NAME MISMATCH! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The hostname used for this connection (A51DEA20.orbit.Domain.com)
does not match the name given in the certificate:
Common Name (CN):
A51DEA20.ORBIT.Domain.com
A valid certificate for the wrong name should NOT be trusted!
guacd[51]: INFO: Certificate validation failed
tls_connect: certificate not trusted, aborting.
Error: protocol security negotiation or connection failure
guacd[51]: ERROR: Error connecting to RDP server
===
Environment
11.6;11.7 Identity Password Vault Web Access;PSM;Privileged Session Management (PSM) HTML5 Gateway
Docker
Cause
This is caused by a mismatch in capitalization between the CN in the PSM certificate and the PSM server address configured in PVWA.
(PVWA > Administration > Options > Privileged Session Management > Configured PSM Servers > PSM ID > Connection Details > Server > Address)
The PSM CN is A51DEA20.ORBIT.Domain.com
The PSM address settings had been configured with A51DEA20.orbit.Domain.com
Linux is case-sensitive; these two values must match case for case. This means the mismatch was caused by ORBIT and orbit.
Resolution
Change the PSM address value in PVWA to match exactly what is configured for the CN in the PSM certificate. In this case I had to change orbit to capitals ORBIT.
Correct value: A51DEA20.ORBIT.Domain.com