Windows specific instructions for creating and installing the SSL cert

Orthagonal, the creator of the SSL work around, wrote this at the time:

“However, everyone with the same root certificate means whoever has the private key could potentially man-in-the-middle things on your Apple TV (including iTunes store interaction, etc). I could avoid distributing the private key and build a cert hierarchy for this, but then I still have it.”

If you already had a working cert (trailers.pem) prior you should not have to create a new one. Just update the atv and install the cert from your webserver no microusb cable needed.


What about people without a web server?

This is just an alternative if you have a webserver or want to install one. You would have use the other tools if you didnt have or want to install a websever. But hey its just a pet procedure of mine :slight_smile:


I would hate to install the new add site profile app, bag.plists for new apps, trailers.pem, and other new profiles such as the plexconnect app by unhooking my atv from everything and hooking it via microusb to a machine everytime I want to install/test different certs. Just seems like a big headache now that I have a webserver feeding my atv whatever certs/apps/profiles I want by just using my atv remote.


Note to everyone: addsite/bag.plists/plexconnect.app only works on ios 5.3 and lower at this time.

OK, so everything is working 100%! Just a big thank you to Drewbie & Institute11 for the help and assistance ! You guys are awesome!

Thanks Sam you are the Man - That worked great........... :D

Aj

i followed this guide and it worked the only thing i had to change was my atv dns ip address to that of my pc's. and the cert file path in the plexconnect settings.py file. you can tell if u installed cert profile on atv in Settings/general menu at the bottom. but when i restarted atv i got stuck in the computers and settings menu so i reset my settings and re-entered my network settings and it let me thru. but it deleted my cert profile on atv too. so i reinstalled it. and it did it to me again. i was stuck in the computers and settings menu. but this time i changed my atv dns ip from manual to automatic. then i restarted and changed atv dns ip back to manual (my pc's ip address) and restarted. And it worked finally success after two nights after work trying. My wife was mad cus i was up on the computer late and i woke up for work late any ways thx  

What do I do if my computer does not recognize ATV3 after I plug it in? 

I had the same issue: I changed the micro-USB-cable. It seems that the Apple TV does not accept all kind of micro-USB-cables…

I had the same issue: I changed the micro-USB-cable. It seems that the Apple TV does not accept all kind of micro-USB-cables...

Thanks, hopefully I'll be able to find one that works

WIth the latest version of Plexconnect you dont actually need the USB cable you can do the profile install from within the ATV.

The instrcutions only seem to be in the OSX install guide https://github.com/iBaa/PlexConnect/wiki/Install-Guide-Mac-Certificates however if you are on WIndows you follow the windows instrcutions to create the .cer, .poem and .key files and then follow option 1 on the linked page.

Hope this helps.

Could someone Please assist me on this?  I have an AT3 running version 5.3.  I loaded Plex Server, PlexConnect, and Python.  When I run Plexconnect, I get no errors and it seems to be running, but when I go to trailers on my ATV, it keeps saying its not available.  I have changed the DNS to reflect the plex connect server and even forwarded ports 80 and 443, but still nothing.... Can someone please tell me what I am missing?

Thanks  in advance

I also updated the Trailers.Pem file in the certificates folder under plex connect, but DID NOT do anything to the ATV3 itself... Is that the problem? Do I need to somehow add a cert to the device itself, before it will recognize the fix?  I tried to connect to my Virtual Machine of Windows 8, but it did not recognize it.  Is there a way to get the file to the box OTA?

Thanks again

@Hmaidhoff I can prob get you goind send me a pm. Is this a mac/pc/linux box running plex? You ABSOLUTELY need to install the trailers.pem to the apple tv using some form of these instructions links:

https://langui.sh/2013/08/27/appletv-ssl-plexconnect/


I thought someone created a easier way though using windows without disconnecting the apple tv whatsoever:

http://forums.plexapp.com/index.php/topic/82597-how-to-transfer-trailerscer-using-plexconnect-no-usb/?hl=trailers.cer#entry479621


There is also a video showing it in action here post #8:

http://forums.plexapp.com/index.php/topic/80779-install-trailerspem-from-appletv-using-a-webserver-on-osx/


If its osx just use my signature otherwise baa has tuts here as well:

https://github.com/iBaa/PlexConnect/wiki/Install-guides

I'm getting an error. I've created the certificate and I connected my appletv to the computer and I clicked on 'instal'. Here is what the console reads:

Nov  5 23:14:31 Apple-TV profiled[119] : (Error) MC: Failed to parse profile data. Error: NSError:
Desc   : The profile Profile is invalid.
Sugg   : The required field PayloadIdentifier is missing.
US Desc: The profile Profile is invalid.
US Sugg: The required field PayloadIdentifier is missing.
Domain : MCProfileErrorDomain
Code   : 1000
Type   : MCFatalError
Params : (
Profile
)
...Underlying error:
NSError:
Desc   : The required field PayloadIdentifier is missing.
US Desc: The required field PayloadIdentifier is missing.
Domain : MCProfileErrorDomain
Code   : 1002
Type   : MCFatalError
Params : (
PayloadIdentifier
)
Nov  5 23:14:31 Apple-TV profiled[119] : (Error) MC: Profile cannot be queued for installation. Error: NSError:
Desc   : Invalid Profile
Sugg   : The profile Profile is invalid.
US Desc: Invalid Profile
US Sugg: The profile Profile is invalid.
Domain : MCInstallationErrorDomain
Code   : 4000
Type   : MCFatalError
...Underlying error:
NSError:
Desc   : The profile Profile is invalid.
Sugg   : The required field PayloadIdentifier is missing.
US Desc: The profile Profile is invalid.
US Sugg: The required field PayloadIdentifier is missing.
Domain : MCProfileErrorDomain
Code   : 1000
Type   : MCFatalError
Params : (
Profile
)
...Underlying error:
NSError:
Desc   : The required field PayloadIdentifier is missing.
US Desc: The required field PayloadIdentifier is missing.
Domain : MCProfileErrorDomain
Code   : 1002
Type   : MCFatalError
Params : (
PayloadIdentifier
)
Nov  5 23:14:38 Apple-TV mc_mobile_tunnel[117] : (Note ) MC: mc_mobile_tunnel shutting down.
Nov  5 23:14:41 Apple-TV mc_mobile_tunnel[118] : (Note ) MC: mc_mobile_tunnel shutting down.
Nov  5 23:14:42 Apple-TV profiled[119] : (Note ) profiled: Service stopping.

@ginomannn did you follow these guides? Delete all old certs from your machine and atv and generate new ones and try again.

https://langui.sh/2013/08/27/appletv-ssl-plexconnect/

https://github.com/iBaa/PlexConnect/wiki/Install-Guide

@ginomannn did you follow these guides? Delete all old certs from your machine and atv and generate new ones and try again.

https://langui.sh/2013/08/27/appletv-ssl-plexconnect/

https://github.com/iBaa/PlexConnect/wiki/Install-Guide

I did. I must have made a mistake somewhere. Ill go back and redo the steps and see if I skipped anything. Thanks for the reply.

I did. I must have made a mistake somewhere. Ill go back and redo the steps and see if I skipped anything. Thanks for the reply.

Same issue. Where you able to resolve?

I still keep getting the unavalible try again later when I go to trailers. I'm using python 2.7 and latest update for pms

[PlexConnect]
logpath = .
enable_dnsserver = True
ip_webserver = 0.0.0.0
prevent_atv_update = True
port_dnsserver = 53
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 = High
ip_pms = 192.168.178.10
enable_plexgdm =

True
port_ssl = 443

and I have never seen my text document look like this :S

20:39:08 PlexConnect: started: 20:39:08
20:39:08 Settings: getsetting enable_plexconnect_autodetect=True
20:39:08 PlexConnect: IP_self: 192.168.2.27
20:39:08 Settings: getsetting enable_dnsserver=True
20:39:08 DNSServer: started: 20:39:08
20:39:08 Settings: getsetting port_dnsserver=53
20:39:08 Settings: getsetting ip_dnsmaster=8.8.8.8
20:39:08 Settings: getsetting prevent_atv_update=True
20:39:08 DNSServer: ***
20:39:09 DNSServer: DNSServer: Serving DNS on port 53.
20:39:09 DNSServer: intercept: ['trailers.apple.com', 'atv.plexconnect'] => 192.168.2.27
20:39:09 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
20:39:09 DNSServer: forward other to higher level DNS: 8.8.8.8
20:39:09 DNSServer: ***
20:39:09 WebServer: started: 20:39:09
20:39:09 Settings: getsetting ip_webserver=0.0.0.0
20:39:09 Settings: getsetting port_webserver=80
20:39:09 WebServer: ***
20:39:09 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
20:39:09 WebServer: ***
20:39:09 ATVSettings: init class CATVSettings
20:39:09 ATVSettings: load settings
20:39:09 Settings: getsetting enable_plexgdm=True
20:39:09 PlexGDM: ***
20:39:09 PlexGDM: looking up Plex Media Server
20:39:09 PlexGDM: ***
20:39:09 PlexGDM: Sending discovery message: M-SEARCH * HTTP/1.0
20:39:09 PlexGDM: Received data from ('192.168.2.27', 32414)
20:39:09 PlexGDM: Data received:
 HTTP/1.0 200 OK

Content-Type: plex/media-server

Resource-Identifier: 123672ecbd8d31af773bf9fd3eb7c6163ca605a7

Name: Murdoch

Port: 32400

Updated-At: 1385861504

Version: 0.9.8.6.175-88ffbb2

20:39:09 WebServer: started: 20:39:09
20:39:09 Settings: getsetting ip_webserver=0.0.0.0
20:39:09 Settings: getsetting port_webserver=80
20:39:09 Settings: getsetting port_ssl=443
20:39:09 Settings: getsetting certfile=./assets/certificates/trailers.pem
20:39:09 Settings: getsetting certfile=./assets/certificates/trailers.pem
20:39:09 WebServer: ***
20:39:09 WebServer: WebServer: Serving HTTPS on 0.0.0.0 port 443.
20:39:09 WebServer: ***
20:39:10 PlexGDM: servers discovered: 1
20:39:10 PlexGDM: Murdoch 192.168.2.27:32400
20:39:10 XMLConverter: PlexGDM - PMS: 192.168.2.27:32400
20:39:10 ATVSettings: setOption: update pms_uuid to ('123672ecbd8d31af773bf9fd3eb7c6163ca605a7',)
20:39:14 PlexConnect: Shutting down.
20:39:15 WebServer: Shutting down.
20:39:15 ATVSettings: save settings
20:39:15 WebServer: Shutting down.
20:39:19 DNSServer: Shutting down.
20:39:19 PlexConnect: shutdown

@mudeedoch you are running a pretty old version of PMS, try updating it and checking you gave if set to use port 32400.

Same results

12:45:46 PlexConnect: started: 12:45:46
12:45:46 Settings: getsetting enable_plexconnect_autodetect=True
12:45:46 PlexConnect: IP_self: 192.168.2.27
12:45:46 Settings: getsetting enable_dnsserver=True
12:45:46 DNSServer: started: 12:45:46
12:45:46 Settings: getsetting port_dnsserver=53
12:45:46 Settings: getsetting ip_dnsmaster=8.8.8.8
12:45:46 Settings: getsetting prevent_atv_update=True
12:45:46 DNSServer: ***
12:45:46 DNSServer: DNSServer: Serving DNS on port 53.
12:45:46 DNSServer: intercept: ['trailers.apple.com', 'atv.plexconnect'] => 192.168.2.27
12:45:46 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
12:45:46 DNSServer: forward other to higher level DNS: 8.8.8.8
12:45:46 DNSServer: ***
12:45:46 WebServer: started: 12:45:46
12:45:46 Settings: getsetting ip_webserver=0.0.0.0
12:45:46 Settings: getsetting port_webserver=80
12:45:46 WebServer: ***
12:45:46 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
12:45:46 WebServer: ***
12:45:46 ATVSettings: init class CATVSettings
12:45:46 ATVSettings: load settings
12:45:46 Settings: getsetting enable_plexgdm=True
12:45:46 PlexGDM: ***
12:45:46 PlexGDM: looking up Plex Media Server
12:45:46 PlexGDM: ***
12:45:46 PlexGDM: Sending discovery message: M-SEARCH * HTTP/1.0
12:45:46 PlexGDM: Received data from ('192.168.2.27', 32414)
12:45:46 PlexGDM: Data received:
 HTTP/1.0 200 OK

Content-Type: plex/media-server

Resource-Identifier: 123672ecbd8d31af773bf9fd3eb7c6163ca605a7

Name: Murdoch

Port: 32400

Updated-At: 1385919739

Version: 0.9.8.10.215-020456b

12:45:46 WebServer: started: 12:45:46
12:45:46 Settings: getsetting ip_webserver=0.0.0.0
12:45:46 Settings: getsetting port_webserver=80
12:45:46 Settings: getsetting port_ssl=443
12:45:46 Settings: getsetting certfile=./assets/certificates/trailers.pem
12:45:46 Settings: getsetting certfile=./assets/certificates/trailers.pem
12:45:46 WebServer: ***
12:45:46 WebServer: WebServer: Serving HTTPS on 0.0.0.0 port 443.
12:45:46 WebServer: ***
12:45:47 PlexGDM: servers discovered: 1
12:45:47 PlexGDM: Murdoch 192.168.2.27:32400
12:45:47 XMLConverter: PlexGDM - PMS: 192.168.2.27:32400
12:45:47 ATVSettings: setOption: update pms_uuid to ('123672ecbd8d31af773bf9fd3eb7c6163ca605a7',)
12:46:04 DNSServer: DNS request received!
12:46:04 DNSServer: Source: ('192.168.2.11', 54475)
12:46:04 DNSServer: Domain: init.itunes.apple.com
12:46:04 DNSServer: ***forward request
12:46:04 DNSServer: -> DNS response from higher level
12:46:06 DNSServer: DNS request received!
12:46:06 DNSServer: Source: ('192.168.2.11', 61873)
12:46:06 DNSServer: Domain: itunes.apple.com
12:46:06 DNSServer: ***forward request
12:46:06 DNSServer: -> DNS response from higher level
12:46:06 DNSServer: DNS request received!
12:46:06 DNSServer: Source: ('192.168.2.11', 49193)
12:46:06 DNSServer: Domain: e673.g.akamaiedge.net
12:46:06 DNSServer: ***forward request
12:46:06 DNSServer: -> DNS response from higher level
12:46:06 DNSServer: DNS request received!
12:46:06 DNSServer: Source: ('192.168.2.11', 54234)
12:46:06 DNSServer: Domain: xp.apple.com
12:46:06 DNSServer: ***forward request
12:46:06 DNSServer: -> DNS response from higher level
12:46:11 DNSServer: DNS request received!
12:46:11 DNSServer: Source: ('192.168.2.11', 57667)
12:46:11 DNSServer: Domain: trailers.apple.com
12:46:11 DNSServer: ***intercept request
12:46:11 DNSServer: -> DNS response: 192.168.2.27
12:46:55 PlexConnect: Shutting down.
12:46:55 WebServer: Shutting down.
12:46:55 WebServer: Shutting down.
12:46:55 ATVSettings: save settings
12:46:56 DNSServer: Shutting down.
12:46:56 PlexConnect: shutdown

...you are running a pretty old version of PlexConnect as well.