title: Extracting and placing keys from a p12 certificate
body: <p>I have an embedded device which needs to connect to a router through wpa2 enterprise encryption.<br>
  I need to replace the default certificates in the code in the files <code>cacert.h , client-cert.h and client-key.h.</code>The keys and the certificates have to be so hard coded.<br>
  I have in my possession a <code>client.p12</code> file and its contents need to be distributed in these three files or any combination thereof.<br>
  Can anyone please tell how to extract the aforementioned keys from the<code>client.p12</code> file and after extraction which keys go where ?     </p>