Page 1 of 2

SSL woes, please save me

Posted: Sat Aug 15, 2020 12:56 pm
by Finkdaddy
OK.
My PM server is up and running on Atlantic.net.
I purchased an SSL certificate from Comodo as the PM help file suggested.
I am now at the step where I have to complete the HTTP/HTTSP verification.
As Comodo said, I created a new file named .well-known.
Inside of that I created a file named pki-validation.
Inside the pki-validation file I placed the unique text file that I downloaded from Comodo.
I placed those files inside the folder where my program files are stored.
I also put the two 32-bit .dll files there per the PM help file.
The path to that location on my server is as follows: C:\Program Files (x86)\Briggs Softworks\Poker Mavens 6

I thought that I had done everything correctly, but I still can't seem to get Comodo to complete the verification.
When I test the URL path they supply, I get an Invalid Command error.

What am I doing wrong?

Re: SSL woes, please save me

Posted: Sat Aug 15, 2020 1:56 pm
by Finkdaddy
Wait...

After looking through this site, am I correct that you can't use an SSL certificate with the Pro version?

Re: SSL woes, please save me

Posted: Sat Aug 15, 2020 2:17 pm
by Kent Briggs
SSL support was enabled in the Pro edition starting with version 6.16.

To get Poker Mavens to serve that test file for validation, you need to use the "Web folder" setting in the "Web Settings" group on the System tab. That folder will act as the document root folder for your domain and whatever files you put in there will be publicly downloadable. So don't use the program folder for that. Create a new folder off your C: drive root. Something like:

C:\Test

The name doesn't matter as long as you tell Poker Mavens where it is with the "Web folder" setting.

Then inside the Test folder is where you create the .well-known folder and inside the .well-known folder is where you create the pki-validation folder. And inside the pki-validation folder is where you place the file. So the path will end up like this:

C:\Test\.well-known\pki-validation\filename.txt

And publicly it will look something like: http://www.example.com/.well-known/pki- ... lename.txt

But remember the "Web folder" setting only points to C:\Test

The point of this exercise is that if they (the certificate authority) can grab that file from your server, it proves you own the domain name and have admin authority to make those folders and test file. Once they do that and give you the SSL cert, you can delete all that stuff and blank out your "Web folder" setting.

Re: SSL woes, please save me

Posted: Sat Aug 15, 2020 7:03 pm
by Finkdaddy
I created a new folder in the C drive. C:\Test
In that folder I made a new folder named .well-known.
In that folder I made a new folder named pki-validation.
In that folder I placed the txt file that I downloaded from Comodo.
Then I pointed the Web Folder from the Web Setting group to that location. C:\Test\.well-known\pki-validation
Then I opened a web browser and went to http://mysite.club/.well-known/pki-vali ... lename.txt

I am still getting an "Invalid Command" error.

What am I not doing right?

Re: SSL woes, please save me

Posted: Sat Aug 15, 2020 7:10 pm
by Kent Briggs
Finkdaddy wrote:Then I pointed the Web Folder from the Web Setting group to that location. C:\Test\.well-known\pki-validation
That's where you went wrong. Set the Web folder setting to the document root, which is "C:\Test" as mentioned above. The CA will include the rest of the path in the URL when they pull the file.

Re: SSL woes, please save me

Posted: Sat Aug 15, 2020 7:18 pm
by Finkdaddy
Oh my god. That did it!
I've been working on this all day. I hope you won't think less of me if I just sit here and cry for a bit. Ha!

Re: SSL woes, please save me

Posted: Sat Aug 15, 2020 8:07 pm
by Finkdaddy
Do I put the OpenSSL files into the folder that the PM software is in?
In my case it is C:\Program Files (x86)\Briggs Softworks\Poker Mavens 6

Re: SSL woes, please save me

Posted: Sat Aug 15, 2020 8:35 pm
by Finkdaddy
Now I am getting a Web Socket Error when I try to connect to the client side. :cry:

Re: SSL woes, please save me

Posted: Sat Aug 15, 2020 9:23 pm
by Kent Briggs
Finkdaddy wrote:Do I put the OpenSSL files into the folder that the PM software is in?
Yes, the two .dll files.

Re: SSL woes, please save me

Posted: Sat Aug 15, 2020 9:26 pm
by Kent Briggs
Finkdaddy wrote:Now I am getting a Web Socket Error when I try to connect to the client side. :cry:
Change your File Port setting to 443 and start your URL with https (443 is the default SSL port).

Also download and run the Redirect Utility so that anyone connecting to http on port 80 gets redirected to https on port 443:

http://www.briggsoft.com/docs/pmavens/Utilities.htm