After v13.2 upgrade PVWA fails to initiate PSM sessions with EnableDistributedConnect=Yes
105
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 16:07 PM
Symptom
In a distributed vault environment, after upgrading to 13.2 all PVWA initiated PSM sessions fail if EnableDistributedConnect=Yes.
Error message:
"Failed to connect. The session could not be established. For further assistance, contact your system administrator."
RabbitMQ service is running both on Primary and on Satellite Vault
The PVWA.App.log shows the following messages:
Failed publishing to queue. key:73f4caf4-3c54-41ab-b24b-************. routingKey:site:all.sub:pvwa.instance:all.context:stm || ||
Failed publishing value for key:73f4caf4-3c54-41ab-b24b-************ in cache:PSMConnectionTokenCache. Reason:"Failed to publish to queue for key:73f4caf4-3c54-41ab-b24b-b083dc3c3ae5. routingKey:site:all.sub:pvwa.instance:all.context:stm" || ||
EPVWA096E Failed to store the session data for the PSM connection in the Vault. Reason: "Failed to set value in the cache for key:73f4caf4-3c54-41ab-b24b-b083dc3c3ae5" || ||
PASWS001I Starting method GeneralExceptionAttribute::OnException || ||
PASWS001E Error occurred: The session could not be established. For further assistance, contact your system administrator. || ||
Looking at the rabbitmq.log we can see the following error:
[info] <0.4949.0> TLS server: In state cipher at ssl_connection.erl:1154 generated SERVER ALERT: Fatal - Unexpected Message - {unexpected_msg,{alert,2,20,
{"ssl_record.erl",362},
undefined,decryption_failed}}
Error message:
"Failed to connect. The session could not be established. For further assistance, contact your system administrator."
RabbitMQ service is running both on Primary and on Satellite Vault
The PVWA.App.log shows the following messages:
Failed publishing to queue. key:73f4caf4-3c54-41ab-b24b-************. routingKey:site:all.sub:pvwa.instance:all.context:stm || ||
Failed publishing value for key:73f4caf4-3c54-41ab-b24b-************ in cache:PSMConnectionTokenCache. Reason:"Failed to publish to queue for key:73f4caf4-3c54-41ab-b24b-b083dc3c3ae5. routingKey:site:all.sub:pvwa.instance:all.context:stm" || ||
EPVWA096E Failed to store the session data for the PSM connection in the Vault. Reason: "Failed to set value in the cache for key:73f4caf4-3c54-41ab-b24b-b083dc3c3ae5" || ||
PASWS001I Starting method GeneralExceptionAttribute::OnException || ||
PASWS001E Error occurred: The session could not be established. For further assistance, contact your system administrator. || ||
Looking at the rabbitmq.log we can see the following error:
[info] <0.4949.0> TLS server: In state cipher at ssl_connection.erl:1154 generated SERVER ALERT: Fatal - Unexpected Message - {unexpected_msg,{alert,2,20,
{"ssl_record.erl",362},
undefined,decryption_failed}}
Environment
13.2 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access;Distributed Vault
Distributed VaultĀ
Cause
The RabbitMQ is using the GCM based ciphers, that tend to have compatibility issues.
This can be proved by capturing wireshark traffic of handshake on PVWA side, and in Server Hello message you will see _GCM based cipher suite are used.
This can be proved by capturing wireshark traffic of handshake on PVWA side, and in Server Hello message you will see _GCM based cipher suite are used.
Resolution
Check the content of %RABBITMQ_BASE%/advanced.config files in the Vaults and make sure the following line exist:
{crl_cache, {ssl_crl_cache, {internal, [{http, 5000}]}}},{ciphers,["ECDHE-ECDSA-AES256-SHA384","ECDHE-RSA-AES256-SHA384"]}]}
If the ciphers are missing, add them as in the above example. If any GCM is listed, it should be removed.
Next, check if the file rabbitmq-ssl.conf (should be located in C:\ProgramData\RabbitMQ\ ) contains content like this one:
listeners.ssl.default=5671
ssl_options.versions.1=tlsv1.2
ssl_options.certfile=C:/ProgramData/RabbitMQ/RabbitMQCert.pem
ssl_options.keyfile=C:/ProgramData/RabbitMQ/RabbitMQCert-protected.pvk
ssl_options.password=FakePassphrase
ssl_options.verify=verify_none
ssl_options.fail_if_no_peer_cert=false
ssl_options.ciphers.1=ECDHE-ECDSA-AES256-SHA384
ssl_options.ciphers.2=ECDHE-ECDSA-AES128-SHA256
ssl_options.ciphers.3=ECDHE-RSA-AES256-SHA384
ssl_options.ciphers.4=ECDHE-RSA-AES128-SHA256
The most important part are ssl_options.ciphers - there shall not be any ciphers apart from the mentioned above. Remove any other you may found.
{crl_cache, {ssl_crl_cache, {internal, [{http, 5000}]}}},{ciphers,["ECDHE-ECDSA-AES256-SHA384","ECDHE-RSA-AES256-SHA384"]}]}
If the ciphers are missing, add them as in the above example. If any GCM is listed, it should be removed.
Next, check if the file rabbitmq-ssl.conf (should be located in C:\ProgramData\RabbitMQ\ ) contains content like this one:
listeners.ssl.default=5671
ssl_options.versions.1=tlsv1.2
ssl_options.certfile=C:/ProgramData/RabbitMQ/RabbitMQCert.pem
ssl_options.keyfile=C:/ProgramData/RabbitMQ/RabbitMQCert-protected.pvk
ssl_options.password=FakePassphrase
ssl_options.verify=verify_none
ssl_options.fail_if_no_peer_cert=false
ssl_options.ciphers.1=ECDHE-ECDSA-AES256-SHA384
ssl_options.ciphers.2=ECDHE-ECDSA-AES128-SHA256
ssl_options.ciphers.3=ECDHE-RSA-AES256-SHA384
ssl_options.ciphers.4=ECDHE-RSA-AES128-SHA256
The most important part are ssl_options.ciphers - there shall not be any ciphers apart from the mentioned above. Remove any other you may found.