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

obtain cert.pem and key.pem #1

Closed
ogonbat opened this issue Sep 24, 2012 · 4 comments
Closed

obtain cert.pem and key.pem #1

ogonbat opened this issue Sep 24, 2012 · 4 comments

Comments

@ogonbat
Copy link

ogonbat commented Sep 24, 2012

Hi,
i have a question.

i have created the certificate into the provisioning portal.
i have downloaded the .cert file form this portal.
so,
how i obtain the certificate and the key.pem file.
sorry for this stupid and newbie question but i'm not a crypto expert :-)

@fara
Copy link
Member

fara commented Sep 24, 2012

Hi, you need to export the certificate as a .p12 file with the Keychain application from OSX.
Afterwards you can get the certificate and key files from the command line like this:

openssl pkcs12 -in "Certificates.p12" -clcerts -nokeys -out certificate.pem
openssl pkcs12 -in "Certificates.p12" -nocerts -out key.pem

I'll update the README with more instructions shortly.

@ogonbat
Copy link
Author

ogonbat commented Sep 24, 2012

Hi fara

thank's for your reply
i have only one question
in the Apple documentation, in the "Passes Are Cryptographically Signed and Compressed"
is explained how to make a signature file and:
"".....Include the WWDR intermediate certificate as part of the signature; you can download this certificate from Apple’s website...."
this is the link:

https://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/PassKit_PG/Chapters/Creating.html#//apple_ref/doc/uid/TP40012195-CH4-SW1

this is not supported in your methods, i think
this is true?
have a nice day

@wannabehero
Copy link

Hi, ogonbat.

I faced with WWDR problem yesterday :)
I solved it and made a pull request. Will just hope, that fata noticed it :)

@fara
Copy link
Member

fara commented Sep 25, 2012

spronin, ogonbat, yes, intermediate signing was missing since it's something new. I'm closing this issue now since spronin created a separate issue for that.

@fara fara closed this as completed Sep 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants