Topic: Couldn't find PEM header in certificate
I am using an Apple developer certificate but when I try to use it in the test program like this:
client -h gateway.sandbox.push.apple.com -p 2195 -v 0 –d –k devkeyslockhome.pem –c slockhomecerts.pem
I get these messages:
getting dynamic buffer
Wolfssl entering PemToDer
Growing Tmp Chain Buffer
Processing Cert Chain
wolfSSl entering PemToDer
Couldn't Find PEM header
Error in Cert in Chain
wolfSSl error: can't load client cert file, check file and run from wolfSSL home dir
The certificate file is:
Bag Attributes
friendlyName: Apple Development IOS Push Services: ca.innovax.slockhome localKeyID: B4 7A 23 DA DB 77 B7 FB FA 9E 48 1B 87 0B 53 B6 17 D3 F4 4E
subject=/UID=ca.innovax.slockhome/CN=Apple Development IOS Push Services: ca.innovax.slockhome/OU=AHJNDK3D2Q/C=US
issuer=/C=US/O=Apple Inc./OU=Apple Worldwide Developer Relations/CN=Apple Worldwide Developer Relations Certification Authority
-----BEGIN CERTIFICATE-----
MIIFjTCCBHWgAwIBAgIIF4P9IRlXiuowDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV
………………………………..
………………………………..
GLyFqiUnB4rhd+UFkR0kNBcQAtqCmWNn/6/hQMxc4Rp1
-----END CERTIFICATE-----
Bag Attributes
friendlyName: Will Hendrie Dev Key
localKeyID: B4 7A 23 DA DB 77 B7 FB FA 9E 48 1B 87 0B 53 B6 17 D3 F4 4E
Key Attributes: <No Attributes>
-----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEAvPIAgIQsorkc8obolg1t1g7ogAcy10Go+tlRlstNMNWR6qzb
ilc/DBMPpuAoUAe0uutQPVu41cl23IdgxQwo/7gWe2BmnKTfXSuhQkwLoq6jpc2a
………………………..
………………………..
Klyv3OzTr7Wc/sDAWo40+9N8a6TwjliQU1goleBtaS5SIDCqVaU=
-----END RSA PRIVATE KEY-----
What exactly is the PEM header and where should it be located?