Horde Agent unable to trust P4 server

I’m having an issue where my Horde Agent isn’t able to connect to my Perforce server due to it not recognizing its fingerprint. I’m not sure where I need to put this .p4trust file in order to get it to trust the server.

I’m running both the Horde server & P4 server via Docker. I already have a .p4trust in the Horde server container so that it could communicate with the P4 server in the first place. The Horde Agent is installed via the .msi installer on my personal PC which already has trusted the P4 server. I’ve confirmed this in Terminal and have tried revoking/re-trusting. No dice.

I’m missing something obvious. Any ideas?

Using native P4 client for ssl:<MY_IP>:1666
Unhandled exception while running conform: Failed: The authenticity of '<MY_IP>:1666' can't be established,
this may be your first attempt to connect to this P4PORT.
The fingerprint for the key sent to your client is
<THE_FINGEPRINT>
To allow connection use the 'p4 trust' command. (Generic=Comm)
Fatal error.

How does horde server solve p4 trust? can you share some experience

Hi there:

You need to set an enviroment variable called P4TRUST, which points to a file on disk
Usually p4trust.txt or .p4trust
eg P4TRUST=/app/Data/.p4trust to your docker compose enviroment variables

Then whith that trust fille add the fingerprint of the server to trust in the right format like this.

IPAddress:Port=**++**:FINGERPRINT

eg my made up ip address
113.123.1.7:1666=**++**:A1:B2:C3: rest of fingerprint etc

Note the : seperating the start of the fingerprint.

Good Luck!