Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setServiceAccountPrivateKeyFromP12File(InputStream p12File) #857

Closed
wonderfly opened this issue Jan 10, 2015 · 8 comments
Closed

setServiceAccountPrivateKeyFromP12File(InputStream p12File) #857

wonderfly opened this issue Jan 10, 2015 · 8 comments
Assignees
Labels
imported type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@wonderfly
Copy link
Contributor

From sebastie...@progis.fr on February 11, 2014 23:28:46

For now, you can't use a p12 stored as a resource and it coul be very usefull if you can setServiceAccountPrivateKeyFromP12File from an InputStream (way that you can access to the ressource).

Here is the method that I use :
public Builder setServiceAccountPrivateKeyFromP12File(InputStream p12File)
throws GeneralSecurityException, IOException {
serviceAccountPrivateKey = SecurityUtils.loadPrivateKeyFromKeyStore(
SecurityUtils.getPkcs12KeyStore(), p12File, "notasecret",
"privatekey", "notasecret");
return this;
}

Original issue: http://code.google.com/p/google-api-java-client/issues/detail?id=857

@patrik7
Copy link

patrik7 commented Aug 27, 2015

+1 It's challenging to get java.io.File from jar file. While InputStream is easy.

@wonderfly wonderfly removed their assignment May 19, 2016
@ferdynator
Copy link

👍 Having issues with this too

@himanshugpt
Copy link

+1 for this feature.

@saturnism
Copy link

ping on this one

@garrettjonesgoogle
Copy link
Member

@saturnism how would you characterize the urgency/importance of this issue?

@srhan55ff
Copy link

07810030040

@srhan55ff
Copy link

srhanff5@gmail.com

@JustinBeckwith JustinBeckwith added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. 🚨 This issue needs some love. labels Jun 7, 2018
@JustinBeckwith JustinBeckwith removed the 🚨 This issue needs some love. label Jun 25, 2018
@chingor13
Copy link
Collaborator

Added in #1011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
imported type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

9 participants