{"action":"created","issue":{"url":"https://api.github.com/repos/qzind/qz-print/issues/80","labels_url":"https://api.github.com/repos/qzind/qz-print/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/qzind/qz-print/issues/80/comments","events_url":"https://api.github.com/repos/qzind/qz-print/issues/80/events","html_url":"https://github.com/qzind/qz-print/issues/80","id":103755919,"number":80,"title":"Signed Windows Installers","user":{"login":"tresf","id":6345473,"avatar_url":"https://avatars.githubusercontent.com/u/6345473?v=3","gravatar_id":"","url":"https://api.github.com/users/tresf","html_url":"https://github.com/tresf","followers_url":"https://api.github.com/users/tresf/followers","following_url":"https://api.github.com/users/tresf/following{/other_user}","gists_url":"https://api.github.com/users/tresf/gists{/gist_id}","starred_url":"https://api.github.com/users/tresf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tresf/subscriptions","organizations_url":"https://api.github.com/users/tresf/orgs","repos_url":"https://api.github.com/users/tresf/repos","events_url":"https://api.github.com/users/tresf/events{/privacy}","received_events_url":"https://api.github.com/users/tresf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/qzind/qz-print/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/qzind/qz-print/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-28T16:59:05Z","updated_at":"2015-11-04T06:38:13Z","closed_at":"2015-11-04T04:47:38Z","body":"Placholder for signing our Windows installers to prevent warning dialogs.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/6345473/10541666/e0f0bff6-73e0-11e5-9e47-9f9022e07923.png)\r\n\r\n\r\nAccording to NSIS's documentation, this seems possible via [`signtool.exe`](http://nsis.sourceforge.net/Run_Command_After_Compilation) on Windows and [`signcode`](http://manpages.ubuntu.com/manpages/dapper/man1/signcode.1.html) on Linux.\r\n\r\n**Linux Signing**\r\n\r\n```bash\r\n# Do key conversion\r\nopenssl pkcs12 -in key-pair.pfx -nocerts -nodes -out private-key.pem\r\nopenssl rsa -in private-key.pem -outform PVK -pvk-strong -out private-key.pvk\r\nopenssl pkcs12 -in key-pair.pfx -nokeys -nodes -out certificate.pem\r\nopenssl crl2pkcs7 -nocrl -certfile certificate.pem -outform DER -out certificate.spc\r\n\r\n# Linux Signing - Provided with mono-dev (sudo apt-get install mono-devel)\r\nsigncode -spc certificate.spc -v private-key.pvk -a sha1 -$ commercial -n \"${socket.name}\" -i \\\r\n${vendor.website} -t ${signing.tsaurl} -tr 10 \"${out.dir}\\${build.socket.name}-${build.version}.exe\"\r\n\r\n# Clean up files\r\nrm private-key.pvk certificate.pem certificate.spc\r\n```\r\n\r\n**Windows Signing**\r\n\r\n```bash\r\n# Provided with Windows SDK (https://msdn.microsoft.com/en-us/windows/desktop/bg162891.aspx)\r\nsigntool.exe sign /f key-pair.pfx /p pass /t ${signing.tsaurl} \"${out.dir}\\${build.socket.name}-${build.version}.exe\r\n```"},"comment":{"url":"https://api.github.com/repos/qzind/qz-print/issues/comments/153598086","html_url":"https://github.com/qzind/qz-print/issues/80#issuecomment-153598086","issue_url":"https://api.github.com/repos/qzind/qz-print/issues/80","id":153598086,"user":{"login":"ordercup","id":967722,"avatar_url":"https://avatars.githubusercontent.com/u/967722?v=3","gravatar_id":"","url":"https://api.github.com/users/ordercup","html_url":"https://github.com/ordercup","followers_url":"https://api.github.com/users/ordercup/followers","following_url":"https://api.github.com/users/ordercup/following{/other_user}","gists_url":"https://api.github.com/users/ordercup/gists{/gist_id}","starred_url":"https://api.github.com/users/ordercup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ordercup/subscriptions","organizations_url":"https://api.github.com/users/ordercup/orgs","repos_url":"https://api.github.com/users/ordercup/repos","events_url":"https://api.github.com/users/ordercup/events{/privacy}","received_events_url":"https://api.github.com/users/ordercup/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T06:38:13Z","updated_at":"2015-11-04T06:38:13Z","body":"Great! :-)\n\nAloke Nath | OrderCup\nwww.ordercup.com\nD: 949-482-6186\nO: 877-240-3545\n\nOn Tue, Nov 3, 2015 at 8:47 PM, Tres Finocchiaro <notifications@github.com>\nwrote:\n\n> Closed #80 <https://github.com/qzind/qz-print/issues/80>.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/qzind/qz-print/issues/80#event-454023270>.\n>\n"}}