$ openssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem -in apns-dev-cert.p12
$ openssl pkcs12 -nocerts -out apns-dev-key.pem -in apns-dev-key.p12
$ openssl rsa -in apns-dev-key.pem -out apns-dev-key-noenc.pem
$ cat apns-dev-cert.pem apns-dev-key-noenc.pem > apns-dev.pem
배포용 인증서
$ openssl pkcs12 -clcerts -nokeys -out apns-cert.pem -in apns-cert.p12
$ openssl pkcs12 -nocerts -out apns-key.pem -in apns-key.p12
$ openssl rsa -in apns-key.pem -out apns-key-noenc.pem
$ cat apns-cert.pem apns-key-noenc.pem > apns.pem
인증서가 제대로 만들어졌는지 확인
$ openssl s_client -ssl3 -connect gateway.sandbox.push.apple.com:2195 -cert apns-dev.pem
댓글 없음:
댓글 쓰기