How do I create a certificate in Perforce on Windows?

On Windows according to the docs I installed P4SSLDIR:

set P4SSLDIR = E: \ Programs \ perforce \ P4SSLDIR \

Trying to create certificate and private key gives error:

C: \ programs> p4d -Gc

Perforce Server Error: P4SSLDIR is not defined or does not reference a valid directory.

How to overcome this in order to create a private key and certificate?

+3


source to share


2 answers


p4d cannot understand the last backslash in the path.

Examples in docs for * nix. Fixing the problem:

set P4SSLDIR = E: \ Programs \ perforce \ P4SSLDIR



Wrong:

set P4SSLDIR = E: \ Programs \ perforce \ P4SSLDIR \

+2


source


I was not able to reproduce this with a simple experiment (I used Perforce 2013.3, which is the version I have):

C:\Users\Bryan\perforce\my-test-server>mkdir P4SSLDIR

C:\Users\Bryan\perforce\my-test-server>set P4SSLDIR=C:\Users\Bryan\perforce\my-test-server\P4SSLDIR

C:\Users\Bryan\perforce\my-test-server>p4d -Gc

C:\Users\Bryan\perforce\my-test-server>dir P4SSLDIR
 Volume in drive C is OS
 Volume Serial Number is 6602-B38E

 Directory of C:\Users\Bryan\perforce\my-test-server\P4SSLDIR

05/24/2015  09:36 AM    <DIR>          .
05/24/2015  09:36 AM    <DIR>          ..
05/24/2015  09:36 AM             1,172 certificate.txt
05/24/2015  09:36 AM             1,704 privatekey.txt

      



You may need help with Perforce technical support as it could be something very specific to what you are doing.

0


source







All Articles