Jump to content


SSL setup problem, can't connect from client.

ssl

  • Please log in to reply
2 replies to this topic

#1 dkm

dkm

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 01 September 2019 - 01:29 PM

Hi,

Sorry if this sound like a pretty trivial problem, but I just can't seem to get ssl working.
I have perforce running on raspbian and everything works fine, but after trying to add ssl I get this error when trying to connect form the client:

SSL connect to ssl:192.168.3.11:1666 failed .
	Remove SSL protocol prefix from P4PORT or fix the TLS settings.

Nothing fancy for the setup:

sudo mkdir /Perforce/sslkeys
sudo chmod 700 /Perforce/sslkeys
export P4PORT=ssl:192.168.3.11:1666
export P4SSLDIR=/Perforce/sslkeys
sudo p4d -Gc
sudo p4d -Gf

It said the certificate and fingerprints were created properly.

p4 set / p4 info after starting the server gives this:
pi.jpg

If anyone has an idea of what I'm doing wrong, that'd be super helpful!
Been trying a couple of times and pulling my hair off...
Thanks!

#2 Domenic

Domenic

    Advanced Member

  • Members
  • PipPipPip
  • 101 posts

Posted 03 September 2019 - 07:23 PM

How did you start the p4d server instance (which flags)? Can you grep the output of 'ps' to confirm the server is running with ssl for the port? If you do remove the ssl prefix (e.g. 'p4 -p 192.168.3.11:1666 info') does the command work?

#3 dkm

dkm

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 11 September 2019 - 07:43 AM

Thanks for the answer.
Sorry, I forgot to update the thread. I managed after redoing the procedure a couple more times.

I think it had to do with the permissions on my 'sslkeys' folder somehow. Well anyway, I eventually managed! :huh:





Also tagged with one or more of these keywords: ssl

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users