{"action":"created","issue":{"url":"https://api.github.com/repos/srvrco/getssl/issues/196","repository_url":"https://api.github.com/repos/srvrco/getssl","labels_url":"https://api.github.com/repos/srvrco/getssl/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/srvrco/getssl/issues/196/comments","events_url":"https://api.github.com/repos/srvrco/getssl/issues/196/events","html_url":"https://github.com/srvrco/getssl/issues/196","id":196390483,"number":196,"title":"Could the name of the directory be overruled by a setting in getssl.cfg?","user":{"login":"princeofnaxos","id":4093300,"avatar_url":"https://avatars.githubusercontent.com/u/4093300?v=3","gravatar_id":"","url":"https://api.github.com/users/princeofnaxos","html_url":"https://github.com/princeofnaxos","followers_url":"https://api.github.com/users/princeofnaxos/followers","following_url":"https://api.github.com/users/princeofnaxos/following{/other_user}","gists_url":"https://api.github.com/users/princeofnaxos/gists{/gist_id}","starred_url":"https://api.github.com/users/princeofnaxos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/princeofnaxos/subscriptions","organizations_url":"https://api.github.com/users/princeofnaxos/orgs","repos_url":"https://api.github.com/users/princeofnaxos/repos","events_url":"https://api.github.com/users/princeofnaxos/events{/privacy}","received_events_url":"https://api.github.com/users/princeofnaxos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-12-19T11:23:26Z","updated_at":"2016-12-19T13:21:15Z","closed_at":null,"body":"Hi,\r\nWe group subdomains in our website to create one certificate for every 100 subdomains. The names are derived by script from our database. Then, we create the directory and its content (getssl.cfg).\r\n\r\nCurrently, the name of the directory is equal to the main domain where the certificate is created for. Our script takes the first domain to be the main domain, but we cannot be sure which this is. If a new domain is created, it might not be the same as when the script ran prior to that. It means that we cannot control the name of the directory, and new directories might be created, where the previous one remains, containing practically the same set of domains.\r\n\r\nWould it be possible to add an option to getssl.cfg, containing the main domain for the cert (e.g. DOMAIN=), so that the name of the directory becomes uninteresting for getssl (e.g. 'group1' in our case)? This would make things more flexible.\r\n\r\nSo, dive into a directory and look for 'DOMAIN=' in getssl.cfg. If not there or empty, use the name of the directory as the main domain (as it does currently). Else, use the values of DOMAIN for the main domain.\r\n\r\nThanks!\r\n\r\nEdwin\r\n"},"comment":{"url":"https://api.github.com/repos/srvrco/getssl/issues/comments/267962442","html_url":"https://github.com/srvrco/getssl/issues/196#issuecomment-267962442","issue_url":"https://api.github.com/repos/srvrco/getssl/issues/196","id":267962442,"user":{"login":"srvrco","id":16167200,"avatar_url":"https://avatars.githubusercontent.com/u/16167200?v=3","gravatar_id":"","url":"https://api.github.com/users/srvrco","html_url":"https://github.com/srvrco","followers_url":"https://api.github.com/users/srvrco/followers","following_url":"https://api.github.com/users/srvrco/following{/other_user}","gists_url":"https://api.github.com/users/srvrco/gists{/gist_id}","starred_url":"https://api.github.com/users/srvrco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srvrco/subscriptions","organizations_url":"https://api.github.com/users/srvrco/orgs","repos_url":"https://api.github.com/users/srvrco/repos","events_url":"https://api.github.com/users/srvrco/events{/privacy}","received_events_url":"https://api.github.com/users/srvrco/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T13:21:14Z","updated_at":"2016-12-19T13:21:14Z","body":"yes, so for example I created a test \"group1.test.com\"  directory and config. \r\nin getssl.cfg I have;\r\nIGNORE_DIRECTORY_DOMAIN=\"true\"\r\nand\r\nSANS=\"sd1.testdomain.com,sd2.testdomain.com\"\r\n\r\nI then get a certificate (stored in group1.test.com/group1.test.com.crt ) which is valid for sd1.testdomain.com and sd2.testdomain.com"}}
{"actor":{"display_login":"srvrco"}}