{"action":"created","issue":{"url":"https://api.github.com/repos/box/box-java-sdk/issues/168","repository_url":"https://api.github.com/repos/box/box-java-sdk","labels_url":"https://api.github.com/repos/box/box-java-sdk/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/box/box-java-sdk/issues/168/comments","events_url":"https://api.github.com/repos/box/box-java-sdk/issues/168/events","html_url":"https://github.com/box/box-java-sdk/issues/168","id":117899388,"number":168,"title":"Error parsing private key for Box Developer Edition.","user":{"login":"majoely","id":5216403,"avatar_url":"https://avatars.githubusercontent.com/u/5216403?v=3","gravatar_id":"","url":"https://api.github.com/users/majoely","html_url":"https://github.com/majoely","followers_url":"https://api.github.com/users/majoely/followers","following_url":"https://api.github.com/users/majoely/following{/other_user}","gists_url":"https://api.github.com/users/majoely/gists{/gist_id}","starred_url":"https://api.github.com/users/majoely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/majoely/subscriptions","organizations_url":"https://api.github.com/users/majoely/orgs","repos_url":"https://api.github.com/users/majoely/repos","events_url":"https://api.github.com/users/majoely/events{/privacy}","received_events_url":"https://api.github.com/users/majoely/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2015-11-19T20:20:27Z","updated_at":"2016-08-26T23:16:55Z","closed_at":"2015-12-13T03:33:24Z","body":"I am getting the error above when testing the CreateAppUser.java code. \r\n\r\nI have downloaded both the pre-compiled jar from oss.sonatype.org and I have downloaded the source and compiled it and the error appears in both.\r\n\r\nI followed the instructions for generation the public/private key pair and it looks fine.\r\n\r\nWhen I googled parts of the stack trace \"PBKDF-OpenSSL\" it was suggesting that I should be searching for \"PBKDF2-OpenSSL\" but from what I could see that was part of the bouncycastle code.\r\n\r\nI have been looking into this on and off for a couple of days now and have run out of options. Is this the right place to be bringing this up?\r\n\r\nHere is the stacktrace:\r\n>Exception in thread \"main\" com.box.sdk.BoxAPIException: Error parsing private key for Box Developer Edition.\r\n\tat com.box.sdk.BoxDeveloperEditionAPIConnection.decryptPrivateKey(BoxDeveloperEditionAPIConnection.java:271)\r\n\tat com.box.sdk.BoxDeveloperEditionAPIConnection.constructJWTAssertion(BoxDeveloperEditionAPIConnection.java:219)\r\n\tat com.box.sdk.BoxDeveloperEditionAPIConnection.authenticate(BoxDeveloperEditionAPIConnection.java:162)\r\n\tat com.box.sdk.BoxDeveloperEditionAPIConnection.getAppEnterpriseConnection(BoxDeveloperEditionAPIConnection.java:118)\r\n\tat boxapitest.AccessAsAppUser.main(AccessAsAppUser.java:50)\r\nCaused by: org.bouncycastle.openssl.PEMException: Unable to create OpenSSL PBDKF: PBKDF-OpenSSL SecretKeyFactory not available\r\n\tat org.bouncycastle.openssl.jcajce.PEMUtilities.getKey(Unknown Source)\r\n\tat org.bouncycastle.openssl.jcajce.PEMUtilities.getKey(Unknown Source)\r\n\tat org.bouncycastle.openssl.jcajce.PEMUtilities.crypt(Unknown Source)\r\n\tat org.bouncycastle.openssl.jcajce.JcePEMDecryptorProviderBuilder$1$1.decrypt(Unknown Source)\r\n\tat org.bouncycastle.openssl.PEMEncryptedKeyPair.decryptKeyPair(Unknown Source)\r\n\tat com.box.sdk.BoxDeveloperEditionAPIConnection.decryptPrivateKey(BoxDeveloperEditionAPIConnection.java:265)\r\n\t... 4 more\r\nCaused by: java.security.NoSuchAlgorithmException: PBKDF-OpenSSL SecretKeyFactory not available\r\n\tat javax.crypto.SecretKeyFactory.<init>(SecretKeyFactory.java:122)\r\n\tat javax.crypto.SecretKeyFactory.getInstance(SecretKeyFactory.java:160)\r\n\tat org.bouncycastle.jcajce.util.DefaultJcaJceHelper.createSecretKeyFactory(Unknown Source)\r\n\t... 10 more\r\nJava Result: 1"},"comment":{"url":"https://api.github.com/repos/box/box-java-sdk/issues/comments/242874252","html_url":"https://github.com/box/box-java-sdk/issues/168#issuecomment-242874252","issue_url":"https://api.github.com/repos/box/box-java-sdk/issues/168","id":242874252,"user":{"login":"bcgit","id":4566970,"avatar_url":"https://avatars.githubusercontent.com/u/4566970?v=3","gravatar_id":"","url":"https://api.github.com/users/bcgit","html_url":"https://github.com/bcgit","followers_url":"https://api.github.com/users/bcgit/followers","following_url":"https://api.github.com/users/bcgit/following{/other_user}","gists_url":"https://api.github.com/users/bcgit/gists{/gist_id}","starred_url":"https://api.github.com/users/bcgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcgit/subscriptions","organizations_url":"https://api.github.com/users/bcgit/orgs","repos_url":"https://api.github.com/users/bcgit/repos","events_url":"https://api.github.com/users/bcgit/events{/privacy}","received_events_url":"https://api.github.com/users/bcgit/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T23:16:55Z","updated_at":"2016-08-26T23:16:55Z","body":"The stack trace indicates the JcePEMDecryptorProviderBuilder has not been configured to use the BC provider."}}
{"actor":{"display_login":"bcgit"}}