p4 trust

Synopsis

Establish trust of an SSL connection to a Perforce service.

Use the command p4 trust -h to get help for the server (if you have not yet trusted your server). You must do this because the command is implemented on the client rather than the server. When a command begins with p4 help, the client forwards it to the server to construct the text of what is displayed on the client machine. In the case of thte trust command, the client might not trust the server to send any commands to it, so the help must begin with p4 trust to get it serviced locally by the client rather than have it forwarded to the server.

Syntax

p4 [g-opts] trust [-l -y -n -d -f -r] [-i fingerprint]

Description

Use p4 trust to manage the P4TRUST file (by default, .p4trust in your home directory) to establish (or manage) the trust of an SSL connection.

The trust file contains the fingerprints of the keys received for SSL connections; when you first connect to a Perforce service, you are prompted with its fingerprint; if the fingerprint is correct, you can use p4 trust to add the service's fingerprint to your trust file. If the fingerprint changes (or expires), subsequent attempts to connect to that service will result in warning or error messages.

Only after you have added an SSL-enabled Perforce service to your P4TRUST file can you connect to it by setting P4PORT to ssl:hostname:port.

Options

-d

Delete an existing trusted fingerprint.

-f

Force the replacement of a mismatched fingerprint.

-i fingerprint

Install the specified fingerprint.

-l

List all known fingerprints on this client workstation.

-n

Automatically refuse any prompts.

-r

List, install, or delete a replacement fingerprint. If a replacement fingerprint exists for the connection, and the primary fingerprint does not match (but the replacement fingerprint does), the replacement fingerprint replaces the primary. This option may be combined with the -l, -i, or -d options.

-y

Automatically accept any prompts.

g-opts

See “Global Options”.

Usage Notes

Can File Arguments Use Revision Specifier?

Can File Arguments Use Revision Range?

Minimal Access Level Required

N/A

N/A

none

  • Your system administrator can help you confirm the accuracy of any fingerprint (or change to a fingerprint) provided to you by a Perforce service.