0

I have an EC key generated by Apple Push Notification Service (APN). As per the RFC5915 section 3 the key should be a sequence that looks like this one.

My problem is that the APN key sequence is encapsulated into another sequence that is not described in the RFC5915. Here is the result I get.

Does anyone know where this sequence is described?

Community
  • 1
  • 1
Spomky-Labs
  • 15,473
  • 5
  • 40
  • 64
  • 1
    I have no idea, but I did notice that the intro to RFC5915 mentions putting ECPrivateKey in the PrivateKey field of a PrivateKeyInfo. – Kevin Oct 18 '16 at 13:34
  • Hi. Thank you. I think you are right; the first sequence is the PrivateKeyInfo described in the [RFC5208](https://tools.ietf.org/html/rfc5208). As your comment was relly helpful, could you please write an answer? – Spomky-Labs Oct 18 '16 at 18:54
  • I'm not familiar with these RFC's or APN, I just know about ASN.1, and I only made a simple observation, so I'm not going to write an authoritative answer. Glad it helped you, though. – Kevin Oct 19 '16 at 01:03

0 Answers0