{"action":"created","comment":{"url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/pulls/comments/59137002","id":59137002,"diff_hunk":"@@ -0,0 +1,154 @@\n+using System;\n+using System.Collections.Generic;\n+using System.Linq;\n+using System.Security.Cryptography.X509Certificates;\n+using Serilog;\n+using Microsoft.Web.Administration;\n+\n+namespace LetsEncrypt.ACME.Simple\n+{\n+    public class OverviewPlugin : Plugin\n+    {\n+        private const string ClientName = \"letsencrypt-win-simple\";\n+\n+        public override string Name => \"OverviewPlugin\";\n+\n+        public override void PrintMenu()\n+        {\n+            Console.WriteLine(\" O: Get overview of all bindings, protocols, renewals and certificates\");\n+        }\n+\n+        public override void HandleMenuResponse(string response, List<Target> targets)\n+        {\n+            if (response == \"o\")\n+            {\n+                Console.WriteLine(\"Running Overview Plugin\");\n+                Log.Information(\"Running Overview Plugin\");\n+\n+                GetIisSites();\n+                Console.WriteLine();\n+                Console.WriteLine(\"Press enter to continue.\");\n+                Console.ReadKey();\n+                GetRenewals();\n+                Console.WriteLine();\n+                Console.WriteLine(\"Press enter to continue.\");\n+                Console.ReadKey();\n+                GetCertificates();\n+                Console.WriteLine();\n+            }\n+        }\n+\n+        public static void GetIisSites()","path":"letsencrypt-win-simple/Plugin/OverviewPlugin.cs","position":41,"original_position":41,"commit_id":"74069f4e87f5163b654b083c264378548b7cd41b","original_commit_id":"74069f4e87f5163b654b083c264378548b7cd41b","user":{"login":"rkerber","id":9090595,"avatar_url":"https://avatars.githubusercontent.com/u/9090595?v=3","gravatar_id":"","url":"https://api.github.com/users/rkerber","html_url":"https://github.com/rkerber","followers_url":"https://api.github.com/users/rkerber/followers","following_url":"https://api.github.com/users/rkerber/following{/other_user}","gists_url":"https://api.github.com/users/rkerber/gists{/gist_id}","starred_url":"https://api.github.com/users/rkerber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkerber/subscriptions","organizations_url":"https://api.github.com/users/rkerber/orgs","repos_url":"https://api.github.com/users/rkerber/repos","events_url":"https://api.github.com/users/rkerber/events{/privacy}","received_events_url":"https://api.github.com/users/rkerber/received_events","type":"User","site_admin":false},"body":"Is the goal to only to list the sites/ hosts that the app will see? If so, then you should instantiate a new plugin object and call the IISPlugin's GetSites.\r\n\r\nIf not, I don't see the point in listing every IIS site and every binding in the app.\r\n\r\nAlso, you need to consider that listing these can be long and by default the command prompt only shows 50 lines. So you need to do some pagination like is done in the main program for listing sites. Make sure you use the hostsPerPage setting.","created_at":"2016-04-10T16:45:36Z","updated_at":"2016-04-10T16:45:36Z","html_url":"https://github.com/Lone-Coder/letsencrypt-win-simple/pull/181#discussion_r59137002","pull_request_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/pulls/181","_links":{"self":{"href":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/pulls/comments/59137002"},"html":{"href":"https://github.com/Lone-Coder/letsencrypt-win-simple/pull/181#discussion_r59137002"},"pull_request":{"href":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/pulls/181"}}},"pull_request":{"url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/pulls/181","id":65218250,"html_url":"https://github.com/Lone-Coder/letsencrypt-win-simple/pull/181","diff_url":"https://github.com/Lone-Coder/letsencrypt-win-simple/pull/181.diff","patch_url":"https://github.com/Lone-Coder/letsencrypt-win-simple/pull/181.patch","issue_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/issues/181","number":181,"state":"open","locked":false,"title":"Create OverviewPlugin.cs","user":{"login":"Trumf-dk","id":16223645,"avatar_url":"https://avatars.githubusercontent.com/u/16223645?v=3","gravatar_id":"","url":"https://api.github.com/users/Trumf-dk","html_url":"https://github.com/Trumf-dk","followers_url":"https://api.github.com/users/Trumf-dk/followers","following_url":"https://api.github.com/users/Trumf-dk/following{/other_user}","gists_url":"https://api.github.com/users/Trumf-dk/gists{/gist_id}","starred_url":"https://api.github.com/users/Trumf-dk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trumf-dk/subscriptions","organizations_url":"https://api.github.com/users/Trumf-dk/orgs","repos_url":"https://api.github.com/users/Trumf-dk/repos","events_url":"https://api.github.com/users/Trumf-dk/events{/privacy}","received_events_url":"https://api.github.com/users/Trumf-dk/received_events","type":"User","site_admin":false},"body":"Get overview of all bindings, protocols, renewals and certificates installed on server","created_at":"2016-04-04T21:44:23Z","updated_at":"2016-04-10T16:45:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"02264383e59502724142c1cf065748d730f4f41a","assignee":{"login":"rkerber","id":9090595,"avatar_url":"https://avatars.githubusercontent.com/u/9090595?v=3","gravatar_id":"","url":"https://api.github.com/users/rkerber","html_url":"https://github.com/rkerber","followers_url":"https://api.github.com/users/rkerber/followers","following_url":"https://api.github.com/users/rkerber/following{/other_user}","gists_url":"https://api.github.com/users/rkerber/gists{/gist_id}","starred_url":"https://api.github.com/users/rkerber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkerber/subscriptions","organizations_url":"https://api.github.com/users/rkerber/orgs","repos_url":"https://api.github.com/users/rkerber/repos","events_url":"https://api.github.com/users/rkerber/events{/privacy}","received_events_url":"https://api.github.com/users/rkerber/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/pulls/181/commits","review_comments_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/pulls/181/comments","review_comment_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/issues/181/comments","statuses_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/statuses/74069f4e87f5163b654b083c264378548b7cd41b","head":{"label":"Trumf-dk:patch-5","ref":"patch-5","sha":"74069f4e87f5163b654b083c264378548b7cd41b","user":{"login":"Trumf-dk","id":16223645,"avatar_url":"https://avatars.githubusercontent.com/u/16223645?v=3","gravatar_id":"","url":"https://api.github.com/users/Trumf-dk","html_url":"https://github.com/Trumf-dk","followers_url":"https://api.github.com/users/Trumf-dk/followers","following_url":"https://api.github.com/users/Trumf-dk/following{/other_user}","gists_url":"https://api.github.com/users/Trumf-dk/gists{/gist_id}","starred_url":"https://api.github.com/users/Trumf-dk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trumf-dk/subscriptions","organizations_url":"https://api.github.com/users/Trumf-dk/orgs","repos_url":"https://api.github.com/users/Trumf-dk/repos","events_url":"https://api.github.com/users/Trumf-dk/events{/privacy}","received_events_url":"https://api.github.com/users/Trumf-dk/received_events","type":"User","site_admin":false},"repo":{"id":47767541,"name":"letsencrypt-win-simple","full_name":"Trumf-dk/letsencrypt-win-simple","owner":{"login":"Trumf-dk","id":16223645,"avatar_url":"https://avatars.githubusercontent.com/u/16223645?v=3","gravatar_id":"","url":"https://api.github.com/users/Trumf-dk","html_url":"https://github.com/Trumf-dk","followers_url":"https://api.github.com/users/Trumf-dk/followers","following_url":"https://api.github.com/users/Trumf-dk/following{/other_user}","gists_url":"https://api.github.com/users/Trumf-dk/gists{/gist_id}","starred_url":"https://api.github.com/users/Trumf-dk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trumf-dk/subscriptions","organizations_url":"https://api.github.com/users/Trumf-dk/orgs","repos_url":"https://api.github.com/users/Trumf-dk/repos","events_url":"https://api.github.com/users/Trumf-dk/events{/privacy}","received_events_url":"https://api.github.com/users/Trumf-dk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Trumf-dk/letsencrypt-win-simple","description":"A Simple ACME Client for Windows","fork":true,"url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple","forks_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/forks","keys_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/teams","hooks_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/hooks","issue_events_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/issues/events{/number}","events_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/events","assignees_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/assignees{/user}","branches_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/branches{/branch}","tags_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/tags","blobs_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/git/refs{/sha}","trees_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/statuses/{sha}","languages_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/languages","stargazers_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/stargazers","contributors_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/contributors","subscribers_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/subscribers","subscription_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/subscription","commits_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/commits{/sha}","git_commits_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/git/commits{/sha}","comments_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/comments{/number}","issue_comment_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/issues/comments{/number}","contents_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/contents/{+path}","compare_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/merges","archive_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/downloads","issues_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/issues{/number}","pulls_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/pulls{/number}","milestones_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/milestones{/number}","notifications_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/labels{/name}","releases_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/releases{/id}","deployments_url":"https://api.github.com/repos/Trumf-dk/letsencrypt-win-simple/deployments","created_at":"2015-12-10T14:37:37Z","updated_at":"2015-12-10T14:37:38Z","pushed_at":"2016-04-10T14:46:05Z","git_url":"git://github.com/Trumf-dk/letsencrypt-win-simple.git","ssh_url":"git@github.com:Trumf-dk/letsencrypt-win-simple.git","clone_url":"https://github.com/Trumf-dk/letsencrypt-win-simple.git","svn_url":"https://github.com/Trumf-dk/letsencrypt-win-simple","homepage":"","size":220,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Lone-Coder:master","ref":"master","sha":"a0dfff351bc1a07038f44b28acffe3cc652ea250","user":{"login":"Lone-Coder","id":920120,"avatar_url":"https://avatars.githubusercontent.com/u/920120?v=3","gravatar_id":"","url":"https://api.github.com/users/Lone-Coder","html_url":"https://github.com/Lone-Coder","followers_url":"https://api.github.com/users/Lone-Coder/followers","following_url":"https://api.github.com/users/Lone-Coder/following{/other_user}","gists_url":"https://api.github.com/users/Lone-Coder/gists{/gist_id}","starred_url":"https://api.github.com/users/Lone-Coder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lone-Coder/subscriptions","organizations_url":"https://api.github.com/users/Lone-Coder/orgs","repos_url":"https://api.github.com/users/Lone-Coder/repos","events_url":"https://api.github.com/users/Lone-Coder/events{/privacy}","received_events_url":"https://api.github.com/users/Lone-Coder/received_events","type":"User","site_admin":false},"repo":{"id":46080325,"name":"letsencrypt-win-simple","full_name":"Lone-Coder/letsencrypt-win-simple","owner":{"login":"Lone-Coder","id":920120,"avatar_url":"https://avatars.githubusercontent.com/u/920120?v=3","gravatar_id":"","url":"https://api.github.com/users/Lone-Coder","html_url":"https://github.com/Lone-Coder","followers_url":"https://api.github.com/users/Lone-Coder/followers","following_url":"https://api.github.com/users/Lone-Coder/following{/other_user}","gists_url":"https://api.github.com/users/Lone-Coder/gists{/gist_id}","starred_url":"https://api.github.com/users/Lone-Coder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lone-Coder/subscriptions","organizations_url":"https://api.github.com/users/Lone-Coder/orgs","repos_url":"https://api.github.com/users/Lone-Coder/repos","events_url":"https://api.github.com/users/Lone-Coder/events{/privacy}","received_events_url":"https://api.github.com/users/Lone-Coder/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Lone-Coder/letsencrypt-win-simple","description":"A Simple ACME Client for Windows","fork":false,"url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple","forks_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/forks","keys_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/teams","hooks_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/hooks","issue_events_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/issues/events{/number}","events_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/events","assignees_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/assignees{/user}","branches_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/branches{/branch}","tags_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/tags","blobs_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/git/refs{/sha}","trees_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/statuses/{sha}","languages_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/languages","stargazers_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/stargazers","contributors_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/contributors","subscribers_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/subscribers","subscription_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/subscription","commits_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/commits{/sha}","git_commits_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/git/commits{/sha}","comments_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/comments{/number}","issue_comment_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/issues/comments{/number}","contents_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/contents/{+path}","compare_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/merges","archive_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/downloads","issues_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/issues{/number}","pulls_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/pulls{/number}","milestones_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/milestones{/number}","notifications_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/labels{/name}","releases_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/releases{/id}","deployments_url":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/deployments","created_at":"2015-11-12T20:56:22Z","updated_at":"2016-04-10T16:03:45Z","pushed_at":"2016-04-10T14:46:05Z","git_url":"git://github.com/Lone-Coder/letsencrypt-win-simple.git","ssh_url":"git@github.com:Lone-Coder/letsencrypt-win-simple.git","clone_url":"https://github.com/Lone-Coder/letsencrypt-win-simple.git","svn_url":"https://github.com/Lone-Coder/letsencrypt-win-simple","homepage":"","size":310,"stargazers_count":298,"watchers_count":298,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":56,"mirror_url":null,"open_issues_count":17,"forks":56,"open_issues":17,"watchers":298,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/pulls/181"},"html":{"href":"https://github.com/Lone-Coder/letsencrypt-win-simple/pull/181"},"issue":{"href":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/issues/181"},"comments":{"href":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/issues/181/comments"},"review_comments":{"href":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/pulls/181/comments"},"review_comment":{"href":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/pulls/181/commits"},"statuses":{"href":"https://api.github.com/repos/Lone-Coder/letsencrypt-win-simple/statuses/74069f4e87f5163b654b083c264378548b7cd41b"}}}}