PlexConnect: Installling Certificates Without USB On Apple TV

Plex LogoInstalling certificates without USB on Apple TV is a elegant and easy way to get PlexConnect on your Apple TV. Installing a certificate on your Apple TV is essential to get PlexConnect running because of the silent Apple TV Software update from August 27, 2013. Installing certificates over the air (OTA) on Apple TV can used for any certificates, not only for the PlexConnect ones.

Up to now, it was necessary to connect your Apple TV to your computer (Mac and Windows PC) via a micro USB cable. Some people including me noticed that not every micro USB cable is working to get the Apple TV recognized in the iPhone configuration utility.

Here’ how to installing certificates without USB cable on Apple TV2 or 3:

  1. The latest version of PlexConnect from Github needs to be running.
  2. Create certificate files for Mac or Windows (Step 2).
  3. Copy all three certificate files to default directory .cer (Mac)/.der (Windows), .pem and .key to …/plexconnect/assets/certificates)
  4. Complete Apple TV configuration steps in the PlexConnect Install Guide (steps 3 & 4 in Mac and 4 & 5 in Windows guide)
  5. Go to the Apple TV Settings.
  6. Select ‘General‘ then scroll the cursor down to highlight ‘Send Data To Apple‘.
  7. Set ‘Send data to apple‘ to ‘No‘.
  8. This time press ‘Play‘ (not the normal ‘Select‘ button) and you will be prompted to add a profile.
  9. Enter the URL for the .cer file: http://your-Plex-Server-IP-address/trailers.cer […/trailers.der for Windows] (don’t forget to add http:// and use your PlexConnect IP address). Click on ‘Submit‘.

Using this work around is really an easy way to install certificates without USB cable to an Apple TV over the air (OTA).

Stay tuned! 😉

91 thoughts on “PlexConnect: Installling Certificates Without USB On Apple TV”

    1. 12/24/2015
      I used this tonight, worked like a champ. Thanks for a great article. I used my ATV3 with the latest updates, Linux Mint 17.3 on a laptop running Plex (PMS). I’m working on a setting up a small tablet to run a light version of linux, Kodi and Plex.

      Thanks again
      Dan

  1. Hey

    When I am doing this is looks to be hanging on adding profile how long should this take left it for 5 minutes or so and then started it again but still no luck.

    my first issue was I had the firewall on but disabling that allowed me to add the profile but now its just stuck here

    Cheers
    Sam

    1. Hi Sam,

      It should normally take seconds. So I wonder what is wrong in your case, too.

      Do you have more than one (WiFi-)network. Your devices should be in the same network.

      What often helps is to unplug the Apple TV from power, wait 30 seconds, plug it in again and restart the Apple TV and repeat the whole process.

      Cheers,
      Gee Are

      1. Hey

        Thanks for getting back to me so soon!! The laptop I am attempting to run it all off had a dynamic IP I have changed this now to a static and trying again (wish me luck)

        Did try turning it on and off again so lets hope it works this time

        Cheers,
        Sam

        1. Update: I have added the profile manually i no look the be having issues with the server not working correctly looks like the 2 are not talking to each other. First time I ran the Plexconnect it looked to be working okay but anytime after there I was not getting “DNS response from higher level” after extracting the zip again I have got it working!!

          Hope my comments help someone and thank you very much for your guide!

          Cheers,
          Sam

          1. Hi Sam,

            you’re welcome! I’m glad that you finally got it working! Thanks for commenting! You’re invited to join miApple.me community on Google+ or following miApple.me on Twitter, facebook or Google+!

            Cheers,
            Gee Are

  2. Hi, I think maybe something goes wrong for me in step 4.. following the PlexConnect install guide (steps 4 and 5 for windows). Maybe you can help me with that. According to the pictures there PlexGDM should discover one server. However the only log I get is this:

    20:59:43 PlexConnect: started: 20:59:43
    20:59:43 PlexConnect: IP_self: 109.123.111.24
    20:59:43 DNSServer: started: 20:59:43
    20:59:43 DNSServer: ***
    20:59:43 DNSServer: DNSServer: Serving DNS on 109.123.111.24 port 53.
    20:59:43 DNSServer: ***
    20:59:43 WebServer: started: 20:59:43
    20:59:43 WebServer: ***
    20:59:43 WebServer: WebServer: Serving HTTP on 109.123.111.24 port 80.
    20:59:43 WebServer: ***
    20:59:43 WebServer: started: 20:59:43
    20:59:43 WebServer: ***
    20:59:43 WebServer: WebServer: Serving HTTPS on 109.123.111.24 port 443.
    20:59:43 WebServer: ***

    I have tried downloading the PlexConnect-02 zip instead of the PlexConnect master zip before, and then it discovered my plex media server. However then I also ran into problems later one, so I am in the process of reinstalling everything according to your guide “Installing PlexConnect On Windows 7, 8 and 8.1 After Apple TV Update”

    1. Hi Einar,

      the Plex Media Server has to be running on your windows PC before starting PlexConnect. Did you reboot your Windows PC after installing Plex Media Server, Python and PlexConnect? Unplug and re-plug your ATV, too.

      Cheers,
      Gee Are

      1. I had not restarted my computer. But I did that now, unplugged ATV, rand Plex Media Server, then PlexConnect. Nothing changed however. Not really sure what it could be.

        1. Hi Einar,

          the certificate is correctly installed? Go to setting, general and then to profiles: There should be ‘trailers.apple.com’ as a profile.

          Did you do it without using an USB cable? Did you change the DNS-address of your ATV? Please check that you followed all my instructions completely?

          Cheers,
          Gee Are

      2. Hi,
        This is before I try to add profile on my ATV, but I am doing it without a USB cable, and yes I have changed the DNS address of my ATV to be the same as IP SELF on PlexConnect…
        If I try to add the profile now, I get the unknown URL type error again.. However I have tried uninstalling and re-installing python many times, even different installations of python (python 2.7.5, 2.7.5(x64), 2,7,6 and lastly 2.7.6(x64)).
        As a side note the unknown URL error does not come up if I go through your instructions but use PlexConnect v0.2 instead of the master zip file. But then in turn I get an error when adding the profile
        .

  3. Pingback: Installing PlexConnect On Windows 7, 8 and 8.1 After Apple TV Update | miApple.me

  4. Something is going wrong for me, I keep getting this error over and over again. This is what the command window of plexconnect gives me. Any idea what i could be doing wrong?

    21:58:36 PlexConnect: ***
    21:58:36 PlexConnect: PlexConnect
    21:58:36 PlexConnect: Press CTRL-C to shut down.
    21:58:36 PlexConnect: ***
    21:58:36 PlexConnect: started: 21:58:36
    21:58:36 PlexConnect: Version: 0.3
    21:58:36 PlexConnect: Python: 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500
    32 bit (Intel)]
    21:58:36 PlexConnect: Host OS: win32
    21:58:36 PlexConnect: IP_self: 192.168.2.108
    21:58:36 DNSServer: started: 21:58:36
    21:58:36 DNSServer: ***
    21:58:36 DNSServer: DNSServer: Serving DNS on 192.168.2.108 port 53.
    21:58:36 DNSServer: intercept: [‘trailers.apple.com’] => 192.168.2.108
    21:58:36 DNSServer: restrain: [‘mesu.apple.com’, ‘appldnld.apple.com’, ‘appldnld
    .apple.com.edgesuite.net’] => 127.0.0.1
    21:58:36 DNSServer: forward other to higher level DNS: 8.8.8.8
    21:58:36 DNSServer: ***
    21:58:36 WebServer: started: 21:58:36
    21:58:36 WebServer: ***
    21:58:36 WebServer: WebServer: Serving HTTP on 192.168.2.108 port 80.
    21:58:36 WebServer: ***
    21:58:36 WebServer: started: 21:58:36
    21:58:36 WebServer: ***
    21:58:36 WebServer: WebServer: Serving HTTPS on 192.168.2.108 port 443.
    21:58:36 WebServer: ***
    21:59:11 WebServer: serving .xml: /trailers.der
    —————————————-
    Exception happened during processing of request from (‘192.168.2.106’, 57141)
    Traceback (most recent call last):
    File “C:\Python27\lib\SocketServer.py”, line 295, in _handle_request_noblock
    self.process_request(request, client_address)
    File “C:\Python27\lib\SocketServer.py”, line 321, in process_request
    self.finish_request(request, client_address)
    File “C:\Python27\lib\SocketServer.py”, line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
    File “C:\Python27\lib\SocketServer.py”, line 649, in __init__
    self.handle()
    File “C:\Python27\lib\BaseHTTPServer.py”, line 340, in handle
    self.handle_one_request()
    File “C:\Python27\lib\BaseHTTPServer.py”, line 328, in handle_one_request
    method()
    File “C:\PlexConnect\WebServer.py”, line 202, in do_GET
    XML = XMLConverter.XML_PMS2aTV(PMSaddress, self.path + args, options)
    File “C:\PlexConnect\XMLConverter.py”, line 347, in XML_PMS2aTV
    PMS = PlexAPI.getXMLFromPMS(PMS_baseURL, path, options, authtoken=auth_token
    )
    File “C:\PlexConnect\PlexAPI.py”, line 319, in getXMLFromPMS
    response = urllib2.urlopen(request, timeout=10)
    File “C:\Python27\lib\urllib2.py”, line 127, in urlopen
    return _opener.open(url, data, timeout)
    File “C:\Python27\lib\urllib2.py”, line 396, in open
    protocol = req.get_type()
    File “C:\Python27\lib\urllib2.py”, line 258, in get_type
    raise ValueError, “unknown url type: %s” % self.__original
    ValueError: unknown url type: /trailers.der
    —————————————-

    1. Hi Chris,

      the advice I can give you, is to check the cert file installation again. If you can’t access the trailer, the reason always lies in a wrong cert file or wrong installation of the certificate.

      To check that the certificate is on your Apple TV: Go to settings, general and then to profiles: There should be ‘trailers.apple.com’ as a profile. If not, the certificate was not correctly installed, you have to repeat the entire process. In your case, it seems to me that there is something wrong with your Python-Installation. Check that you did not install the x64-version of Python. Try to reinstal, Python then.

      Cheers,
      Gee Are

      1. I just went though this last night (PlexConnect on Windows 7), got this same error everyone else is quoting above (ValueError: unknown url type: /trailers.der) , and FOUND A WORKAROUND. I renamed my trailers.der (as it was named from the batch file) to trailers.cer, and told my AppleTV profile url to look for trailers.cer, and it finally connected!

        It looks like something that changed along the way (Silent apple upgrade? The fact that we’re using a later version of Plex Media Server than outlined because we can no longer fetch older versions) that disallowed the profile creation to find a cert file named .der – but it does just fine if it’s named .cer . And that’s all it takes – a simple file rename.

          1. And a big thank you to you for this tutorial! I was lost trying to get things worked out with my new Christmas-gift ATV3 ’til I saw these two articles. I was on the verge of having to spend a weekend or two in Handbrake converting my media library into an Apple-recognized format for use with AppleTV and then adding Season/Episode info to each one – very happy to not have to go through that.

            I hope Chris is subscribed and sees this.

            1. Yeah i’m seeing this. Now i just need to convince my mother about letting me have a second go at this. THe failure of getting it working put her off it the first time around.

  5. Hi Gee Are

    Yes i have not installed the trailers certification file to the Apple TV unit. The error output i posted is what i get when i try to add the profile to the unit, step 9 in the instructions that is.

    First i though i was writing the full path to the cert file wrong
    e.g. http://192.168.1.106/PlexConnect/assets/certificates/trailers.der
    but that didn’t seem to be it. Then i thought maybe it should just be the ip address of the computer and not the full path
    e.g. http://192.168.1.106/trailers.der
    But that didn’t work either.

    Could it be that it matters that the plexserver is automapped to another port then the default of 32400?

    Anyways i am going to try again, going through the installation of everything again. I could also try it on another computer to see if that might be the issue.

    1. Hi Chris,

      the later IP address is correct, if the IP of your PC, on which the Plex server is running, is 192.168.1.106. However, you have to point the DNS of your Apple TV to your PC before trying to install the cert file (Step 4 in this guide)!

      Further more, did you create the folder C:/Cert including the cert files? Follow this tutorial:
      https://miapple.me/2013/09/09/installing-plexconnect-on-windows-7-8-and-8-1-after-apple-tv-update/

      Cheers,
      Gee Are

  6. Is this still working after the recent update of 6.1 for aTV.
    I keep getting “Unable to add profile. An error occured while adding the profile [-1005]. Check the URL and try again.

    Thanks!

      1. Hey thanks,

        It worked.
        The problem was I was migrating from windows to a mac and was trying to use the certs I had generated in win to install via your method on apple tv.
        Generated the certs again via mac and now all is well 🙂

        /Jake

        1. Thanks Gee!!
          I worked it out just after I post my Question.
          Just for your info. I had to used ” cer” as “der” didn’t work for me.

          BTW, Love your work, Keep it up, I will be following you for sure

          Cheers from OZ

  7. I am getting the error Trailers Not Available Please try again Later. I have followed the steps and still cannot get it working. I have included a copy of my log:

    12:18:29 PlexConnect: started: 12:18:29
    12:18:29 PlexConnect: Version: 0.3.1+
    12:18:29 PlexConnect: Python: 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)]
    12:18:29 PlexConnect: Host OS: win32
    12:18:29 PlexConnect: IP_self: 192.168.0.29
    12:18:29 DNSServer: started: 12:18:29
    12:18:29 DNSServer: ***
    12:18:29 DNSServer: DNSServer: Serving DNS on 192.168.0.29 port 53.
    12:18:29 DNSServer: ***
    12:18:29 WebServer: started: 12:18:29
    12:18:29 WebServer: ***
    12:18:29 WebServer: WebServer: Serving HTTP on 192.168.0.29 port 80.
    12:18:29 WebServer: ***
    12:18:29 WebServer: started: 12:18:29
    12:18:29 WebServer: ***
    12:18:29 WebServer: WebServer: Serving HTTPS on 192.168.0.29 port 443.
    12:18:29 WebServer: ***
    12:22:35 PlexConnect: Shutting down.
    12:22:35 DNSServer: Shutting down.
    12:22:35 WebServer: Shutting down.
    12:22:35 WebServer: Shutting down.
    12:22:35 PlexConnect: shutdown

    1. Hi Eric,

      first of all: It is always the certificate: Either not correctly created or not properly installed.
      In your case it seems that you installed the wrong Python 2.7.6 version (64 Bit):
      “12:18:29 PlexConnect: Python: 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)]” and therefore the cert file was not correctly created.

      Go to this post, download the correct Python version mentioned there and repeat the entire process:
      https://miapple.me/installing-plexconnect-on-windows-7-8-and-8-1-after-apple-tv-update/

      Cheers,
      Gee Are

  8. Pingback: PlexConnect Running on Apple TV 7.0 Beta 1 And Mac OS X 10.10 Yosemite - miApple.me

  9. Pingback: OpenPlex App Installs And Manages PlexConnect on Mac OS X - miApple.me

  10. Pingback: Plex And PlexConnect Running On Apple TV 7.0 Beta 2 And Mac OS X 10.10 Yosemite Beta 3 - miApple.me

  11. Pingback: Plex, PlexConnect And OpenPlex Running On Apple TV 7.0 Beta 4 And Mac OS X 10.10 Yosemite Beta 5 - miApple.me

  12. Pingback: PlexConnect on Windows: How To Hijack iMovie Theatre Or WSJ Instead Of Trailers App - miApple.me

  13. Pingback: Plex, PlexConnect And OpenPlex Running On Apple TV 7.0 Beta 3 And Mac OS X 10.10 Yosemite Beta 4 - miApple.me

  14. Pingback: Plex, PlexConnect And OpenPlex Running On Apple TV 7.0 GM Seed - miApple.me

  15. Pingback: PlexConnect Running On Apple TV 7.0.1 Beta - miApple.me

  16. At the end I entered http://Ip address/trailers.cer

    I also tried to change my DNS on the apple tv (I tried with automatic, and tried to put the ip of my mac as a DNS)

    It always give me “An error occurred while adding the profile [109]. Check the URL and try again”

    My apple tv is running on 7.0.1 (6912) if that can help

  17. Pingback: Plex, PlexConnect And OpenPlex Running On Apple TV 7.0.1 - miApple.me

  18. Hi Are,
    I run correct version of Python, I try to create certificate file with .der and .cer. I copy these file in plexconnect\assets\certificates
    I add profile from ATV but error 4001 back me.

    22:29:14 PlexConnect: ***
    22:29:14 PlexConnect: PlexConnect
    22:29:14 PlexConnect: Press CTRL-C to shut down.
    22:29:14 PlexConnect: ***
    22:29:14 PlexConnect: started: 22:29:14
    22:29:14 PlexConnect: Version: 0.4-dev
    22:29:14 PlexConnect: Python: 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500
    32 bit (Intel)]
    22:29:14 PlexConnect: Host OS: win32
    22:29:14 PlexConnect: IP_self: 192.168.1.250
    22:29:15 WebServer: started: 22:29:15
    22:29:15 WebServer: ***
    22:29:15 WebServer: WebServer: Serving HTTP on 192.168.1.250 port 80.
    22:29:15 WebServer: ***
    22:29:15 WebServer: started: 22:29:15
    22:29:15 WebServer: ***
    22:29:15 WebServer: WebServer: Serving HTTPS on 192.168.1.250 port 443.
    22:29:15 WebServer: ***
    22:29:15 DNSServer: started: 22:29:15
    22:29:15 DNSServer: ***
    22:29:15 DNSServer: DNSServer: Serving DNS on 192.168.1.250 port 53.
    22:29:15 DNSServer: intercept: [‘trailers.apple.com’] => 192.168.1.250
    22:29:15 DNSServer: restrain: [‘mesu.apple.com’, ‘appldnld.apple.com’, ‘appldnld
    .apple.com.edgesuite.net’] => 127.0.0.1
    22:29:15 DNSServer: forward other to higher level DNS: 8.8.8.8
    22:29:15 DNSServer: ***
    22:29:27 WebServer: serving .xml: /trailers.der
    22:29:51 WebServer: serving .xml: /PlexConnect/assets/certificates

    Help me please!!!

      1. Hi Are,
        I create cert files in C:/Cert and after I copy these in plexconnect/assets/certificates.
        But AppleTV give me error 4001. Check the url.

  19. Pingback: Plex, PlexConnect And OpenPlex Running On Apple TV 7.0.2 beta - miApple.me

  20. Hi man,
    I’ve got a small question. After I set the ‘send data to apple’ on no and I click on the play button (I only have one play button but it’s the same as the select button) the apple TV doesn’t redirect me to the profiile page but just asks me if I want to send data to apple…
    Can you please help me?

  21. Pingback: Plex, PlexConnect And OpenPlex Running On Apple TV 7.0.2 - miApple.me

  22. Pingback: Plex, PlexConnect And OpenPlex Running On Apple TV 7.0 - miApple.me

  23. Pingback: Plex, PlexConnect And OpenPlex Running On Apple TV 7.1 beta - miApple.me

  24. Pingback: Plex, PlexConnect And OpenPlex Running On Apple TV 7.1 - miApple.me

  25. Pingback: Plex, PlexConnect And OpenPlex Running On Apple TV 7.2 beta 2 - miApple.me

  26. Pingback: Plex, PlexConnect And OpenPlex Running On Apple TV 7.2 - miApple.me

  27. Pingback: Plex, PlexConnect And OpenPlex Running On Apple TV 7.2 beta 3 - miApple.me

  28. Pingback: Plex, PlexConnect And OpenPlex Running On OS X 10.10.4 Yosemite Beta 6 - miApple.me

    1. Hi Kama,

      try the following: unplug your Apple TV, shut down your computer and restart your router. Then, restart your computer and your Apple TV. Have a look that all devices are in the same WiFi/LAN network. and try again.

      Cheers,
      Gee Are

  29. Pingback: Plex, PlexConnect And OpenPlex Running On Mac OS X 10.10.4 Yosemite - miApple.me

  30. Pingback: Plex, PlexConnect And OpenPlex Running On OS X 10.10.5 Yosemite Beta 1 - miApple.me

  31. Pingback: Plex, PlexConnect And OpenPlex Running On OS X 10.10.5 Yosemite Beta 2 - miApple.me

    1. I’m having the same problem. Aaron, you’re using the old white remote, right? I can’t find my new silver one and I have a white one, which has NO play button. I’m stuck and not sure how to use the USB method. Any alternative with the white remote?

Leave a Reply

Your email address will not be published. Required fields are marked *