Add certificates for Let's Encrypt. See https://letsencrypt.org/certificates/
David Blume

David Blume commited on 2016-02-02 17:19:31
Showing 4 changed files, with 100 additions and 5 deletions.

... ...
@@ -6,7 +6,7 @@ all: $(ZIPFILE)
6 6
 	-F "mysubmit=Install" --output /dev/null --write-out "%{http_code}" \
7 7
 	http://$(ROKU_DEV_TARGET)/plugin_install
8 8
 
9
-$(ZIPFILE):  manifest source/*.brs images/*.png
9
+$(ZIPFILE):  manifest source/*.brs source/*.crt images/*.png
10 10
 	zip $@ manifest source/*.* images/*.*
11 11
 
12 12
 clean:
... ...
@@ -1,6 +1,6 @@
1 1
 title=IP Tagger
2 2
 major_version=1
3 3
 minor_version=0
4
-build_version=1
4
+build_version=2
5 5
 mm_icon_focus_hd=pkg:/images/mm_icon_focus_hd.png
6 6
 mm_icon_focus_sd=pkg:/images/mm_icon_focus_sd.png
... ...
@@ -0,0 +1,93 @@
1
+-----BEGIN CERTIFICATE----- 
2
+MIIFjTCCA3WgAwIBAgIRAOeTkL6SBwNJGF95dYHlyoMwDQYJKoZIhvcNAQELBQAw
3
+TzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2Vh
4
+cmNoIEdyb3VwMRUwEwYDVQQDEwxJU1JHIFJvb3QgWDEwHhcNMTUwNjA0MTIwMDIw
5
+WhcNMjAwNjA0MTIwMDIwWjBKMQswCQYDVQQGEwJVUzEWMBQGA1UEChMNTGV0J3Mg
6
+RW5jcnlwdDEjMCEGA1UEAxMaTGV0J3MgRW5jcnlwdCBBdXRob3JpdHkgWDEwggEi
7
+MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCc0wzwWuUuR7dyXTeDs2hjMOrX
8
+NSYZJeG9vjXxcJIvt7hLQQWrqZ41CFjssSrEaIcLo+N15Obzp2JxunmBYB/XkZqf
9
+89B4Z3HIaQ6Vkc/+5pnpYDxIzH7KTXcSJJ1HG1rrueweNwAcnKx7pwXqzkrrvUHl
10
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s+lVDR3veyJm+kXQ99b21/+jh5Xos1AnX5iItreGCc=
93
+-----END CERTIFICATE-----
... ...
@@ -33,8 +33,10 @@ sub showScreen(contentID As String, options As String)
33 33
     end for
34 34
 
35 35
     request = CreateObject("roUrlTransfer")
36
+    request.SetCertificatesFile("pkg:/source/letsencrypt.crt")
37
+    request.InitClientCertificates()
36 38
     request.SetPort(port)
37
-    request.SetUrl("http://kvs.dlma.com/")
39
+    request.SetUrl("https://kvs.dlma.com")
38 40
     params = deviceID+"="+ipAddr+"&auth=ahov"
39 41
     screen.addParagraph("Tagging "+ipAddr+" for "+deviceID+"...")
40 42
     if request.AsyncPostFromString(params)
... ...
@@ -52,9 +54,9 @@ sub showScreen(contentID As String, options As String)
52 54
             if msg.GetInt() = 1
53 55
                 if msg.GetResponseCode() = 200
54 56
                     screen.addParagraph("Success! You can get this device's IP address from the following URL:")
55
-                    screen.addParagraph("http://kvs.dlma.com?k="+deviceID)
57
+                    screen.addParagraph("https://kvs.dlma.com?k="+deviceID)
56 58
                 else
57
-                    screen.addParagraph("It didn't work. Got code " + msg.GetResponseCode())
59
+                    screen.addParagraph("It didn't work. Got code " + str(msg.GetResponseCode()))
58 60
                 endif
59 61
             endif
60 62
         end if
61 63