{"action":"closed","issue":{"url":"https://api.github.com/repos/Triple-T/gradle-play-publisher/issues/236","repository_url":"https://api.github.com/repos/Triple-T/gradle-play-publisher","labels_url":"https://api.github.com/repos/Triple-T/gradle-play-publisher/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/Triple-T/gradle-play-publisher/issues/236/comments","events_url":"https://api.github.com/repos/Triple-T/gradle-play-publisher/issues/236/events","html_url":"https://github.com/Triple-T/gradle-play-publisher/issues/236","id":254724519,"node_id":"MDU6SXNzdWUyNTQ3MjQ1MTk=","number":236,"title":"Invalid PKCS8 data","user":{"login":"nscherer","id":3358053,"node_id":"MDQ6VXNlcjMzNTgwNTM=","avatar_url":"https://avatars0.githubusercontent.com/u/3358053?v=4","gravatar_id":"","url":"https://api.github.com/users/nscherer","html_url":"https://github.com/nscherer","followers_url":"https://api.github.com/users/nscherer/followers","following_url":"https://api.github.com/users/nscherer/following{/other_user}","gists_url":"https://api.github.com/users/nscherer/gists{/gist_id}","starred_url":"https://api.github.com/users/nscherer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nscherer/subscriptions","organizations_url":"https://api.github.com/users/nscherer/orgs","repos_url":"https://api.github.com/users/nscherer/repos","events_url":"https://api.github.com/users/nscherer/events{/privacy}","received_events_url":"https://api.github.com/users/nscherer/received_events","type":"User","site_admin":false},"labels":[{"id":120198646,"node_id":"MDU6TGFiZWwxMjAxOTg2NDY=","url":"https://api.github.com/repos/Triple-T/gradle-play-publisher/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-09-01T18:55:50Z","updated_at":"2018-06-04T04:37:41Z","closed_at":"2018-06-04T04:37:41Z","author_association":"NONE","body":"I'm getting this error trying to run a bootstrap task:\r\n\r\nError:Execution failed for task ':app:bootstrapAppNamePlayResources'. java.io.IOException: Invalid PKCS8 data.\r\n\r\nStack trace:\r\n\r\n```\r\nCaused by: java.io.IOException: Invalid PKCS8 data.\r\n        at com.google.api.client.googleapis.auth.oauth2.GoogleCredential.privateKeyFromPkcs8(GoogleCredential.java:812)\r\n        at com.google.api.client.googleapis.auth.oauth2.GoogleCredential.fromStreamServiceAccount(GoogleCredential.java:788)\r\n        at com.google.api.client.googleapis.auth.oauth2.GoogleCredential.fromStream(GoogleCredential.java:260)\r\n        at com.google.api.client.googleapis.auth.oauth2.GoogleCredential$fromStream.call(Unknown Source)\r\n        at de.triplet.gradle.play.AndroidPublisherHelper.authorizeWithServiceAccount(AndroidPublisherHelper.groovy:66)\r\n        at de.triplet.gradle.play.AndroidPublisherHelper.authorizeWithServiceAccount(AndroidPublisherHelper.groovy:45)\r\n        at de.triplet.gradle.play.AndroidPublisherHelper.init(AndroidPublisherHelper.groovy:86)\r\n        at de.triplet.gradle.play.PlayPublishTask.publish(PlayPublishTask.groovy:28)\r\n        at de.triplet.gradle.play.PlayPublishTask$publish.callCurrent(Unknown Source)\r\n        at de.triplet.gradle.play.BootstrapTask.bootstrap(BootstrapTask.groovy:26)\r\n        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)\r\n```\r\n\r\nThe last few lines of output before the error:\r\n\r\n```\r\nExecuting task ':app:bootstrapAppNamePlayResources' (up-to-date check took 0.0 secs) due to:\r\n  Task has not declared any outputs.\r\n:app:bootstrapAppNamePlayResources FAILED\r\n:app:bootstrapAppNamePlayResources (Thread[Daemon worker,5,main]) completed. Took 0.663 secs.\r\n```\r\n\r\nHere's how I'm configuring it:\r\n\r\n```\r\n    playAccountConfigs {\r\n        defaultAccountConfig {\r\n            jsonFile = file('Google Play Android Developer-bd451789a4fa.json')\r\n        }\r\n    }\r\n```\r\n\r\nThe json file has some things in it that I assume should not be publicized but I can give some details if that would be helpful.  I have not modified the file.  I also have a p12 file that doesn't seem to be referenced from anywhere - is it possible my json file is incorrect?  Is there an example file that shows what one should have in it?  Lastly, could there be a more helpful error message supplied?  I don't know what to do with \"Invalid PKCS8 data\" but if it told me \"Missing XYZ from json configuration file\" that would be a lot more useful."}}
{"actor":{"display_login":"SUPERCILEX"}}