Jump to content


Photo

Windows specific instructions for creating and installing the SSL cert


Best Answer 2600Sam , 18 January 2014 - 12:27 PM

Hi 2600Sam,

 

Thanks for your instructions, however they are in dire need of updating and fixing.  Using your instructions, I've managed to set up everything except for the Apple TV itself (it's at my girlfriend's and I'll set up that portion this weekend).  That said, I've already encountered a fair share of difficulty trying to understand your instructions, and I shouldn't have to search through 9 pages of this thread in an attempt to find answers. :P  Here are the issues I've encountered so far:

  1. Not really an issue but more of an observation: the Light version of OpenSSL seems to work properly for creating the certificates, so you should be okay to recommend it.
  2. There are 2 lines that are very cryptic and ultimately unnecessary, i.e.: "in windows explorer navigate to the directory and LEFT click... etc. ...press the shift key and RIGHT click... etc."  You're just looking to run the batch file, which can be accomplished by simply double-clicking on the .bat file.  You don't need to be in a particular directory before running the batch file because the file contents already point to absolute locations (with exception to the incorrect directory naming conventions that I will mention in the next point below).
  3. The cert.create.bat file refers to directory names that have periods before the subfolder (e.g. C:.\trailers.key).  Windows directories aren't named this way.  This should be changed to C:\trailers.key.  Ironically, the original link that you referred to from the langui.sh site has the correct directory naming convention, so I'm not sure why you went out of your way to change it?
  4. For the statement: "before the batch file finished it will run the trailers.der one of the 3 files that was just created", please correct the grammar and add brackets for the last part so that the statement is much easier to understand, i.e. "before the batch file finishes, it will run the trailers.der file (i.e. one of the 3 files that was just created)".
  5. "Your Cert directory should have 5-6 files now".  No it won't, because your batch file instructed the trailers files to be created in the root of C:\ (assuming you first take out the periods I mentioned in point #3).  If you really want the files to appear in the Cert directory, you'll have to update the batch file to reflect this, and instruct the users to create a directory that exactly matches what's listed in your batch file.
  6. "go to the assets directory and create a directory called certificates there".  This directory already exists.
  7. "Give it a Name and Identifier" - Does the Identifier have to be in the format com.<whatever>.profile?  I named mine com.appletv.profile and it seems to have worked, but I just want to be sure.

That's all I have for now.  When I load up the certificate on the Apple TV this weekend I'll let you know if there should be any other updates made.

 

Cheers,

Visor

1. Updated

2. Those are Win7 specific (updated to reflect this) : see point 3 below

3. Maybe you should read up on batch file programing.....using C:.\name keeps it in the current directory (usually where ever the bat file was run) so that it can be executed in any directory anywhere and people won't have to use my archaic or complex directory naming system. Using C:\name would place the files in the root directory. I wanted to make it simple for people to use.

4. grammer nazi much (this obviously annoys you and that make me happy so it stays)

5. reread point #3

6. at the time this was written that directory did not exits it does now (updated)

7. did you see the picture "enter something" maybe it should say "enter anything" it doesn't matter, I called mine PlexConnect-Fix and it still works!!

 

Sam

Go to the full post


178 replies to this topic

#1 2600Sam

2600Sam

    Member

  • Members
  • PipPip
  • 13 posts

Posted 01 September 2013 - 12:43 AM

I'm using windows 7 64bit, Plex Media Server 0.9.8.4.125-ffe2a5d, Python version 2.7.5 and PlexConnect (latest version 3 hours old right now)

 

all the information I'm using was taken from here: http://langui.sh/201...sl-plexconnect/

 

you will need

 

1) Win32 OpenSSL from here: http://slproweb.com/...n32OpenSSL.html

..I used the Win32 OpenSSL v1.0.1e (The light version does work, although not verified by me)

2) iPhone Configuration Utility from here: http://support.apple.com/kb/DL1466

3) get the attached cert.create.txt file attached to this post and rename to cert.create.bat because i can't upload a .bat file it's a .txt file

 

let's get started

 

install programs listed in 1 and 2!

 

create a directory, I called mine "Cert"

copy the cert.create.txt to that directory and rename it to cert.create.bat

<THE FOLLOWING IS WIN7 SPECIFIC>

in windows explorer navigate to the directory and LEFT click on the screen below the name of the file you renamed so that no files are highlighted

press the shift key and RIGHT click on the screen you should see

cmd-prmpt.jpg

click on Open command window here

this will open a command prompt and start you in this particular directory

</THE FOLLOWING IS WIN7 SPECIFIC>

 

<OTHER WINDOWS USER>

open up a cmd prompt

naviate to where you placed the cert.create.bat file

</OTHER WINDOWS USERS>

 

I don't use above Window 7 so your kind of on your own there...sorry

 

run the cert.create.bat (alternate retype all the commands in the cert.create.txt file)

Attached File  cert.create.txt   364bytes   5545 downloads

before the batch file finished it will run the trailers.der one of the 3 files that was just created

click on the Install Certificate . . .  button (required for the next part to work correctly) go with the defaults for installation on this.

you can close the command prompt window now!

 

Your Cert directory should have 5-6 files now

select and copy the trailers.pem file

navigate to where you have PlexConnect installed on your machine

go to the assets directory and then go to the certificates directory and paste the copy of the trailers.pem file there

 

Start the iPhone Configuration Utility

and click on Configuration Profiles

config.jpg

 

the click on New+

new.jpg

 

Give it a Name and Identifier

name.jpg

 

scroll down and click on Credentials

down.jpg

 

click on Configure

scroll down to find the certificate you just created and installed

look for trailers.apple.com

here.jpg

 

click on it, then click OK

 

Now plug in your aTV to a power source and to the computer

Click on your device and then the Configuration Profiles tab

hnh.jpg

 

click the install button

inst.jpg

 

this button will change to Remove if everything worked!

remove.jpg

 

close the iPhone Configuration Utility

disconnect the aTV from the computer and connect it to your TV

restart PlexConnect.py

and try the Trailers it should be working now ...maybe.....Hopefully!!

 

HTH

Sam


  • FreakNL, Leej00w, zombian and 5 others like this

#2 riche543

riche543

    Member

  • Members
  • PipPip
  • 79 posts

Posted 01 September 2013 - 02:01 AM

Hi sam

 

Going to try this , Thanks for posting but cannot see:  (attached cert.create.txt file attached to this post)

maybe I am  missing something?

 

Edit: Maybe it was still uploading your post, I have all related links,pics etc etc now.

 

Cheers

   Riche



#3 2600Sam

2600Sam

    Member

  • Members
  • PipPip
  • 13 posts

Posted 01 September 2013 - 04:50 AM

Hi sam

 

Going to try this , Thanks for posting but cannot see:  (attached cert.create.txt file attached to this post)

maybe I am  missing something?

 

Edit: Maybe it was still uploading your post, I have all related links,pics etc etc now.

 

Cheers

   Riche

/scarasm

yeah for super high speed servers

/scarasm

 

good luck!!



#4 riche543

riche543

    Member

  • Members
  • PipPip
  • 79 posts

Posted 01 September 2013 - 05:16 AM

Thanks sam

 

All up & running again ..  :rolleyes:

 

Cheers..

 

  Riche



#5 Gdowler

Gdowler

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 01 September 2013 - 06:52 AM

Thank you!
This worked for me as well on both my Apple TV 3's
I appreciate you taking the time to break out the instructions for a Windows environment!!



#6 2600Sam

2600Sam

    Member

  • Members
  • PipPip
  • 13 posts

Posted 01 September 2013 - 07:45 AM

Thanks sam

 

All up & running again ..  :rolleyes:

 

Cheers..

 

  Riche

 

 

Thank you!
This worked for me as well on both my Apple TV 3's
I appreciate you taking the time to break out the instructions for a Windows environment!!

 

I'm just happy it works for other people :D

we all have windows panes but that doesn't mean we should suffer..LOL



#7 mitch1001

mitch1001

    Member

  • Members
  • PipPip
  • 53 posts

Posted 01 September 2013 - 02:12 PM

Worked for me too, thanks a lot. ;)

#8 Puchdog

Puchdog

    Member

  • Members
  • PipPip
  • 51 posts

Posted 01 September 2013 - 03:55 PM

Work for me also. Great instructions.



#9 huiszeeland

huiszeeland

    Member

  • Members
  • PipPip
  • 73 posts

Posted 01 September 2013 - 06:46 PM

I did all the above mentioned things but without luck. 

 

20:40:35 PlexConnect: started: 20:40:35
20:40:35 PlexConnect: IP_self: 192.168.1.163
20:40:35 DNSServer: started: 20:40:35
20:40:35 DNSServer: ***
20:40:35 DNSServer: DNSServer: Serving DNS on port 53.
20:40:35 DNSServer: intercept: ['trailers.apple.com', 'atv.plexconnect'] => 192.168.1.163
20:40:35 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
20:40:35 DNSServer: forward other to higher level DNS: 8.8.8.8
20:40:35 DNSServer: ***
20:40:35 WebServer: started: 20:40:35
20:40:35 WebServer: ***
20:40:35 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
20:40:35 WebServer: WebServer: Serving HTTPS on 0.0.0.0 port 443.
20:40:35 WebServer: ***
20:40:35 PlexGDM: ***
20:40:35 PlexGDM: looking up Plex Media Server
20:40:35 PlexGDM: ***
20:40:36 PlexGDM: servers discovered: 1
20:40:36 XMLConverter: PlexGDM - PMS: 192.168.1.163:32400
20:42:44 DNSServer: DNS request received!
20:42:44 DNSServer: Source: ('192.168.1.200', 61870)
20:42:44 DNSServer: Domain: iphonesubmissions.apple.com
20:42:44 DNSServer: ***forward request
20:42:44 DNSServer: -> DNS response from higher level
 
 
[PlexConnect]
logpath = .
enable_dnsserver = True
ip_webserver = 0.0.0.0
prevent_atv_update = True
enable_plexconnect_autodetect = True
port_pms = 32400
port_webserver = 80
ip_plexconnect = 0.0.0.0
certfile = ./assets/certificates/trailers.pem
ip_dnsmaster = 8.8.8.8
loglevel = Normal
ip_pms = 192.168.178.10
enable_plexgdm = True
port_ssl = 443
port_dnsserver = 53
 
regards
rob

  • samsung UE55HU7500, plex app 1.0.15
  • PMS 09.11.6 on windows 7 64 bit I5 3570K CPU@ 3.40 GHz
  • Sitecom  LN-120 V1 giga switch
  • Asus RT-N66U
  • content on external WD harddisk 2 TB, USB 3.0, connected to PMS computer

#10 Gdowler

Gdowler

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 01 September 2013 - 08:37 PM

@ Rob I could be wrong but I think your cert path is off

 

"certfile = ./assets/certificates/trailers.pem"

 

I believe the ./ denotes an IOS path whereas these instructions are specific to Windows

 

Try changing it to certfile = c:/assets/certificates/trailers.pem

 

But even that might be off. You want to make sure that this path points towards directly to the file. For instance I have Plex Connect installed right in my C:/ drive so my path looks like

 

certfile = C:PlexConnect/assets/certificates/trailers.pem

 

Good luck!



#11 huiszeeland

huiszeeland

    Member

  • Members
  • PipPip
  • 73 posts

Posted 01 September 2013 - 08:48 PM

thanks Gdowler, 

 

modified it now to :

 

[PlexConnect]
logpath = .
enable_dnsserver = True
ip_webserver = 0.0.0.0
prevent_atv_update = True
enable_plexconnect_autodetect = True
port_pms = 32400
port_webserver = 80
ip_plexconnect = 0.0.0.0
certfile = C:/PlexConnect-master/assets/certificates/trailers.pem
ip_dnsmaster = 8.8.8.8
loglevel = Normal
ip_pms = 192.168.178.10
enable_plexgdm = True
port_ssl = 443
port_dnsserver = 53
 

 

 

22:45:19 PlexConnect: started: 22:45:19
22:45:19 PlexConnect: IP_self: 192.168.1.163
22:45:19 DNSServer: started: 22:45:19
22:45:19 DNSServer: ***
22:45:19 DNSServer: DNSServer: Serving DNS on port 53.
22:45:19 DNSServer: intercept: ['trailers.apple.com', 'atv.plexconnect'] => 192.168.1.163
22:45:19 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
22:45:19 DNSServer: forward other to higher level DNS: 8.8.8.8
22:45:19 DNSServer: ***
22:45:19 WebServer: started: 22:45:19
22:45:19 WebServer: ***
22:45:19 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
22:45:19 WebServer: WebServer: Serving HTTPS on 0.0.0.0 port 443.
22:45:19 WebServer: ***
22:45:19 PlexGDM: ***
22:45:19 PlexGDM: looking up Plex Media Server
22:45:19 PlexGDM: ***
22:45:20 PlexGDM: servers discovered: 1
22:45:20 XMLConverter: PlexGDM - PMS: 192.168.1.163:32400
 
still without luck, I am using python 2.75,  pms 09.8.5 , windows 7 64 , at3 5.3
 
I don't know what to change anymore, spend 5 hours now to get it working ..... :(

  • samsung UE55HU7500, plex app 1.0.15
  • PMS 09.11.6 on windows 7 64 bit I5 3570K CPU@ 3.40 GHz
  • Sitecom  LN-120 V1 giga switch
  • Asus RT-N66U
  • content on external WD harddisk 2 TB, USB 3.0, connected to PMS computer

#12 Gdowler

Gdowler

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 01 September 2013 - 08:52 PM

I typo'd my cert path (keep in mind that this is mine as an example, double check yours to make sure it maps correctly)

 

certfile = C:\PlexConnect-master\assets\certificates\trailers.pem
 

I forgot that I had to turn the slashes around



#13 huiszeeland

huiszeeland

    Member

  • Members
  • PipPip
  • 73 posts

Posted 01 September 2013 - 08:58 PM

22:53:16 PlexConnect: started: 22:53:16
22:53:16 PlexConnect: IP_self: 192.168.1.163
22:53:16 DNSServer: started: 22:53:16
22:53:16 DNSServer: ***
22:53:16 DNSServer: DNSServer: Serving DNS on port 53.
22:53:16 DNSServer: intercept: ['trailers.apple.com', 'atv.plexconnect'] => 192.168.1.163
22:53:16 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
22:53:16 DNSServer: forward other to higher level DNS: 8.8.8.8
22:53:16 DNSServer: ***
22:53:17 WebServer: started: 22:53:17
22:53:17 WebServer: ***
22:53:17 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
22:53:17 WebServer: WebServer: Serving HTTPS on 0.0.0.0 port 443.
22:53:17 WebServer: ***
22:53:17 PlexGDM: ***
22:53:17 PlexGDM: looking up Plex Media Server
22:53:17 PlexGDM: ***
22:53:18 PlexGDM: servers discovered: 1
22:53:18 XMLConverter: PlexGDM - PMS: 192.168.1.163:32400
22:53:49 DNSServer: DNS request received!
22:53:49 DNSServer: Source: ('192.168.1.200', 61638)
22:53:49 DNSServer: Domain: p35-buy.itunes.apple.com.akadns.net
22:53:49 DNSServer: ***forward request
22:53:49 DNSServer: -> DNS response from higher level
22:53:51 DNSServer: DNS request received!
22:53:51 DNSServer: Source: ('192.168.1.200', 63691)
22:53:51 DNSServer: Domain: ax.init-cdn.itunes.apple.com.akadns.net
22:53:51 DNSServer: ***forward request
22:53:51 DNSServer: -> DNS response from higher level
22:53:51 DNSServer: DNS request received!
22:53:51 DNSServer: Source: ('192.168.1.200', 61447)
22:53:51 DNSServer: Domain: itunes-cdn.apple.com.akadns.net
22:53:51 DNSServer: ***forward request
22:53:51 DNSServer: -> DNS response from higher level
22:54:16 DNSServer: DNS request received!
22:54:16 DNSServer: Source: ('192.168.1.200', 51224)
22:54:16 DNSServer: Domain: a771.da1.akamai.net
22:54:16 DNSServer: ***forward request
22:54:16 DNSServer: -> DNS response from higher level
22:54:17 DNSServer: DNS request received!
22:54:17 DNSServer: Source: ('192.168.1.200', 56638)
22:54:17 DNSServer: Domain: trailers.apple.com
22:54:17 DNSServer: ***intercept request
22:54:17 DNSServer: -> DNS response: 192.168.1.163

  • samsung UE55HU7500, plex app 1.0.15
  • PMS 09.11.6 on windows 7 64 bit I5 3570K CPU@ 3.40 GHz
  • Sitecom  LN-120 V1 giga switch
  • Asus RT-N66U
  • content on external WD harddisk 2 TB, USB 3.0, connected to PMS computer

#14 huiszeeland

huiszeeland

    Member

  • Members
  • PipPip
  • 73 posts

Posted 01 September 2013 - 09:05 PM

i'm quite desperated at this stage.... :(


  • samsung UE55HU7500, plex app 1.0.15
  • PMS 09.11.6 on windows 7 64 bit I5 3570K CPU@ 3.40 GHz
  • Sitecom  LN-120 V1 giga switch
  • Asus RT-N66U
  • content on external WD harddisk 2 TB, USB 3.0, connected to PMS computer

#15 drewbie

drewbie

    Plex Star

  • Members
  • PipPipPipPipPipPip
  • 1087 posts
  • Location: Melbourne Australia

Posted 01 September 2013 - 11:05 PM

Huiszeeland,

 

If you browse to your Plexconnect machine on https://192.168.1.163

 

What happens?  Unless you have installed your certificate on the machine you are browsing from you should get a Certificate warning.

 

This proves that plexconnect can locate the trailers.pem file.

 

The next step would be to redo the profile on the apple TV to make sure that the trailers.cer file is correctly installed.



#16 Gdowler

Gdowler

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 02 September 2013 - 01:59 AM

What Drewbie is suggesting is spot on. In my case what ultimately being the culprit was the cert on the Apple TV. And the steps above resolved that although I did stumble at first.



#17 huiszeeland

huiszeeland

    Member

  • Members
  • PipPip
  • 73 posts

Posted 02 September 2013 - 05:30 AM

hi Drewbie and Gdowler  i am receiving an error saying that i need a certificate. Strange because i followed steps above to get certicicate on my atv 3. 

I will try again . btw i 've used https : //192.168.163:32400


  • samsung UE55HU7500, plex app 1.0.15
  • PMS 09.11.6 on windows 7 64 bit I5 3570K CPU@ 3.40 GHz
  • Sitecom  LN-120 V1 giga switch
  • Asus RT-N66U
  • content on external WD harddisk 2 TB, USB 3.0, connected to PMS computer

#18 huiszeeland

huiszeeland

    Member

  • Members
  • PipPip
  • 73 posts

Posted 02 September 2013 - 05:43 AM

Hi Drewbie, i have modified my settings now :

 

[PlexConnect]
logpath = .
enable_dnsserver = True
ip_webserver = 0.0.0.0
prevent_atv_update = True
enable_plexconnect_autodetect = True
port_pms = 32400
port_webserver = 80
ip_plexconnect = 0.0.0.0
certfile = C:\PlexConnect-master\assets\certificates\trailers.pem
 ip_dnsmaster = 8.8.8.8
loglevel = Normal
ip_pms = 192.168.178.10
enable_plexgdm = True
port_ssl = 443
port_dnsserver = 53

  • samsung UE55HU7500, plex app 1.0.15
  • PMS 09.11.6 on windows 7 64 bit I5 3570K CPU@ 3.40 GHz
  • Sitecom  LN-120 V1 giga switch
  • Asus RT-N66U
  • content on external WD harddisk 2 TB, USB 3.0, connected to PMS computer

#19 drewbie

drewbie

    Plex Star

  • Members
  • PipPipPipPipPipPip
  • 1087 posts
  • Location: Melbourne Australia

Posted 02 September 2013 - 06:03 AM

Huiszeeland,

 

I suggest you stop cross posting everywhere, keep your issue to one thread its a lot eaiser for people to help you and see what has been suggested.  I would actually also suggest you start your own thread rather than jumping on someone else's as again its easier to see what answers are for you.

 

I have just posted more to one of the other threads you are posting on.  (http://forums.plexap...trailers/page-2)



#20 huiszeeland

huiszeeland

    Member

  • Members
  • PipPip
  • 73 posts

Posted 02 September 2013 - 06:15 AM

ok drewbie, from now on i will use one post.

sorry


  • samsung UE55HU7500, plex app 1.0.15
  • PMS 09.11.6 on windows 7 64 bit I5 3570K CPU@ 3.40 GHz
  • Sitecom  LN-120 V1 giga switch
  • Asus RT-N66U
  • content on external WD harddisk 2 TB, USB 3.0, connected to PMS computer



Reply to this topic