{"action":"created","issue":{"url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/issues/501","labels_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/issues/501/labels{/name}","comments_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/issues/501/comments","events_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/issues/501/events","html_url":"https://github.com/MSOpenTech/azure-xplat-cli/issues/501","id":107490138,"number":501,"title":"ARM: network application-gateway ssl-add giving error","user":{"login":"sreekanthbs","id":11171941,"avatar_url":"https://avatars.githubusercontent.com/u/11171941?v=3","gravatar_id":"","url":"https://api.github.com/users/sreekanthbs","html_url":"https://github.com/sreekanthbs","followers_url":"https://api.github.com/users/sreekanthbs/followers","following_url":"https://api.github.com/users/sreekanthbs/following{/other_user}","gists_url":"https://api.github.com/users/sreekanthbs/gists{/gist_id}","starred_url":"https://api.github.com/users/sreekanthbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sreekanthbs/subscriptions","organizations_url":"https://api.github.com/users/sreekanthbs/orgs","repos_url":"https://api.github.com/users/sreekanthbs/repos","events_url":"https://api.github.com/users/sreekanthbs/events{/privacy}","received_events_url":"https://api.github.com/users/sreekanthbs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/labels/ARM","name":"ARM","color":"0052cc"},{"url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/labels/network","name":"network","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"MikhailTryakhov","id":3079588,"avatar_url":"https://avatars.githubusercontent.com/u/3079588?v=3","gravatar_id":"","url":"https://api.github.com/users/MikhailTryakhov","html_url":"https://github.com/MikhailTryakhov","followers_url":"https://api.github.com/users/MikhailTryakhov/followers","following_url":"https://api.github.com/users/MikhailTryakhov/following{/other_user}","gists_url":"https://api.github.com/users/MikhailTryakhov/gists{/gist_id}","starred_url":"https://api.github.com/users/MikhailTryakhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikhailTryakhov/subscriptions","organizations_url":"https://api.github.com/users/MikhailTryakhov/orgs","repos_url":"https://api.github.com/users/MikhailTryakhov/repos","events_url":"https://api.github.com/users/MikhailTryakhov/events{/privacy}","received_events_url":"https://api.github.com/users/MikhailTryakhov/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-09-21T11:13:38Z","updated_at":"2015-09-30T11:34:16Z","closed_at":null,"body":"network application-gateway ssl-add giving error <b>'certificate does not have Private Key'</b> even after creating ssl cert.\r\n1. Generate Private Key on the Server Running Apache + mod_ssl\r\nopenssl genrsa -des3 -out myPrivateKey.key 1024\r\n2. Generate a Certificate Signing Request (CSR)\r\nopenssl req -new -key myPrivateKey.key -out myCert.csr\r\n3. Generate a Self-Signed SSL Certificate\r\nopenssl x509 -req -days 365 -in myCert.csr -signkey myPrivateKey.key -out myCert.crt\r\n<pre>\r\n<code>\r\nC:\\Sep2015\\21Sep\\azure-xplat-cli-dev-arm-app-gateways>node bin/azure network application-gateway ssl-cert add test-trya-group2 appgw03 testCert -t C:\\Share\\cert\r\nfile\\ssl\\myCert.crt -p pswd\r\ninfo:    Executing command network application-gateway ssl-cert add\r\n+ Looking up an Application Gateway \"appgw03\"\r\n+ Setting configuration for an Application Gateway \"appgw03\"\r\nerror:   Certificate /subscriptions/bfb5e0bf-124b-4d0c-9352-7c0a9f4d9948/resourceGroups/test-trya-group2/providers/Microsoft.Network/applicationGateways/appgw03\r\n/sslCertificates/testCert does not have Private Key.\r\ninfo:    Error information has been recorded to C:\\Users\\sreekanth.bandaru\\.azure\\azure.err\r\nerror:   network application-gateway ssl-cert add command failed\r\n</code>\r\n</pre>"},"comment":{"url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/issues/comments/144368423","html_url":"https://github.com/MSOpenTech/azure-xplat-cli/issues/501#issuecomment-144368423","issue_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/issues/501","id":144368423,"user":{"login":"MikhailTryakhov","id":3079588,"avatar_url":"https://avatars.githubusercontent.com/u/3079588?v=3","gravatar_id":"","url":"https://api.github.com/users/MikhailTryakhov","html_url":"https://github.com/MikhailTryakhov","followers_url":"https://api.github.com/users/MikhailTryakhov/followers","following_url":"https://api.github.com/users/MikhailTryakhov/following{/other_user}","gists_url":"https://api.github.com/users/MikhailTryakhov/gists{/gist_id}","starred_url":"https://api.github.com/users/MikhailTryakhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikhailTryakhov/subscriptions","organizations_url":"https://api.github.com/users/MikhailTryakhov/orgs","repos_url":"https://api.github.com/users/MikhailTryakhov/repos","events_url":"https://api.github.com/users/MikhailTryakhov/events{/privacy}","received_events_url":"https://api.github.com/users/MikhailTryakhov/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T11:34:16Z","updated_at":"2015-09-30T11:34:16Z","body":"Hi @sreekanthbs \r\nit's fixed now. Please test it again"}}