title: get x and y components from ecc public key in PEM format using openssl
body: <p>I am generating a KeyPair for <a href="http://en.wikipedia.org/wiki/Elliptic_curve_cryptography" rel="noreferrer">ECC</a> from curve 'secp128r1' using openssl </p>
  
  <p>Steps I followed :</p>
  
  <ul>
  <li><p>first I generated a private key using the command</p>
  
  <blockquote>
    <p>openssl ecparam -genkey -name secp128r1 -noout -out private.pem</p>
  </blockquote></li>
  <li><p>then i viewed the corresponding public key using the command</p>
  
  <blockquote>
    <p>openssl ec -in private.pem -text -noout</p>
  </blockquote>
  
  <p>which showed an output as :</p>
  
  <blockquote>
    <p>read EC key</p>
    
    <blockquote>
      <p>Private-Key: (128 bit)<br/>
      priv:<br/>
       00:9f:bf:2b:bd:06:86:3a:a1:bc:7c:3e:90:57:40:<br/>
      f4:bc<br/>
      pub: <br/>
       04:04:ce:24:34:d4:cb:f2:58:94:2f:8a:5f:06:d7:<br/>
       3f:ed:5a:50:ef:fb:cc:b7:49:62:16:62:9e:aa:d5:<br/>
       30:a8:a5<br/><br/>
      ASN1 OID: secp128r1</p>
    </blockquote>
  </blockquote></li>
  </ul>
  
  <p>I want explicitly x and y components from the public key generated here, please can anyone suggest the correct way of doing this ?<br/>
  The above public key is 264 bits long, hence cannot take(/split) it as is <br/>
  Thanks</p>