{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-iot-sdk-java/issues/19","repository_url":"https://api.github.com/repos/Azure/azure-iot-sdk-java","labels_url":"https://api.github.com/repos/Azure/azure-iot-sdk-java/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-iot-sdk-java/issues/19/comments","events_url":"https://api.github.com/repos/Azure/azure-iot-sdk-java/issues/19/events","html_url":"https://github.com/Azure/azure-iot-sdk-java/issues/19","id":200454225,"number":19,"title":"[Java] DeviceClient creates a \"cert.crt\" file ","user":{"login":"tameraw","id":9868777,"avatar_url":"https://avatars.githubusercontent.com/u/9868777?v=3","gravatar_id":"","url":"https://api.github.com/users/tameraw","html_url":"https://github.com/tameraw","followers_url":"https://api.github.com/users/tameraw/followers","following_url":"https://api.github.com/users/tameraw/following{/other_user}","gists_url":"https://api.github.com/users/tameraw/gists{/gist_id}","starred_url":"https://api.github.com/users/tameraw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tameraw/subscriptions","organizations_url":"https://api.github.com/users/tameraw/orgs","repos_url":"https://api.github.com/users/tameraw/repos","events_url":"https://api.github.com/users/tameraw/events{/privacy}","received_events_url":"https://api.github.com/users/tameraw/received_events","type":"User","site_admin":false},"labels":[{"id":461741543,"url":"https://api.github.com/repos/Azure/azure-iot-sdk-java/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"mamokarz","id":18200629,"avatar_url":"https://avatars.githubusercontent.com/u/18200629?v=3","gravatar_id":"","url":"https://api.github.com/users/mamokarz","html_url":"https://github.com/mamokarz","followers_url":"https://api.github.com/users/mamokarz/followers","following_url":"https://api.github.com/users/mamokarz/following{/other_user}","gists_url":"https://api.github.com/users/mamokarz/gists{/gist_id}","starred_url":"https://api.github.com/users/mamokarz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mamokarz/subscriptions","organizations_url":"https://api.github.com/users/mamokarz/orgs","repos_url":"https://api.github.com/users/mamokarz/repos","events_url":"https://api.github.com/users/mamokarz/events{/privacy}","received_events_url":"https://api.github.com/users/mamokarz/received_events","type":"User","site_admin":false},"assignees":[{"login":"mamokarz","id":18200629,"avatar_url":"https://avatars.githubusercontent.com/u/18200629?v=3","gravatar_id":"","url":"https://api.github.com/users/mamokarz","html_url":"https://github.com/mamokarz","followers_url":"https://api.github.com/users/mamokarz/followers","following_url":"https://api.github.com/users/mamokarz/following{/other_user}","gists_url":"https://api.github.com/users/mamokarz/gists{/gist_id}","starred_url":"https://api.github.com/users/mamokarz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mamokarz/subscriptions","organizations_url":"https://api.github.com/users/mamokarz/orgs","repos_url":"https://api.github.com/users/mamokarz/repos","events_url":"https://api.github.com/users/mamokarz/events{/privacy}","received_events_url":"https://api.github.com/users/mamokarz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2017-01-12T19:13:43Z","updated_at":"2017-01-19T19:53:56Z","closed_at":null,"body":"_From @dluc on November 27, 2016 0:0_\n\nI noticed a `cert.crt` file continuously appearing in the root of a project using `com.microsoft.azure.iothub.DeviceClient`. Is it possible to fix the SDK, so that the library doesn't write to the filesystem?\r\n\r\n```\r\nimport com.microsoft.azure.iothub.DeviceClient;\r\nimport com.microsoft.azure.iothub.IotHubClientProtocol;\r\n\r\npublic class TestDeviceClient\r\n{\r\n    static String hub = System.getenv(\"SDK_HUB_NAME\");\r\n    static String device = System.getenv(\"SDK_DEVICE_ID\");\r\n    static String deviceKey = System.getenv(\"SDK_DEVICE_KEY\");\r\n\r\n    public static void main(String[] args) throws Exception\r\n    {\r\n        String cs = \"HostName=\" + hub + \".azure-devices.net;DeviceId=\" + device + \";SharedAccessKey=\" + deviceKey;\r\n        DeviceClient client = new DeviceClient(cs, IotHubClientProtocol.AMQPS);\r\n        client.open();\r\n        client.close();\r\n    }\r\n}\r\n```\r\n\r\n`cert.crt`:\r\n\r\n```\r\n-----BEGIN CERTIFICATE-----\r\nMIIDdzCCAl+gAwIBAgIEAgAAuTANBgkqhkiG9w0BAQUFADBaMQswCQYDVQQGEwJJ\r\nRTESMBAGA1UEChMJQmFsdGltb3JlMRMwEQYDVQQLEwpDeWJlclRydXN0MSIwIAYD\r\nVQQDExlCYWx0aW1vcmUgQ3liZXJUcnVzdCBSb290MB4XDTAwMDUxMjE4NDYwMFoX\r\nDTI1MDUxMjIzNTkwMFowWjELMAkGA1UEBhMCSUUxEjAQBgNVBAoTCUJhbHRpbW9y\r\n...cut...\r\n-----END CERTIFICATE-----\r\n```\r\n\n\n_Copied from original issue: Azure/azure-iot-sdks#995_"},"comment":{"url":"https://api.github.com/repos/Azure/azure-iot-sdk-java/issues/comments/273880346","html_url":"https://github.com/Azure/azure-iot-sdk-java/issues/19#issuecomment-273880346","issue_url":"https://api.github.com/repos/Azure/azure-iot-sdk-java/issues/19","id":273880346,"user":{"login":"tameraw","id":9868777,"avatar_url":"https://avatars.githubusercontent.com/u/9868777?v=3","gravatar_id":"","url":"https://api.github.com/users/tameraw","html_url":"https://github.com/tameraw","followers_url":"https://api.github.com/users/tameraw/followers","following_url":"https://api.github.com/users/tameraw/following{/other_user}","gists_url":"https://api.github.com/users/tameraw/gists{/gist_id}","starred_url":"https://api.github.com/users/tameraw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tameraw/subscriptions","organizations_url":"https://api.github.com/users/tameraw/orgs","repos_url":"https://api.github.com/users/tameraw/repos","events_url":"https://api.github.com/users/tameraw/events{/privacy}","received_events_url":"https://api.github.com/users/tameraw/received_events","type":"User","site_admin":false},"created_at":"2017-01-19T19:53:56Z","updated_at":"2017-01-19T19:53:56Z","body":"@dulc - Code has been checked in by @mamokarz. "}}
{"actor":{"display_login":"tameraw"}}