title: Generating a client certificate on an Android device
body: <p>I want to create an Android application which will use SSL client certificate authentication. </p>
  
  <p>I have found sample codes which show me how two use SSL client certificate authentication in an Android application. This is clear to me. </p>
  
  <p>My problem is however that I want to generate an SSL client certificate on the device. Simply stated, I want my program to do the following:</p>
  
  <p>When the program is installed on the device, a client certificate should be generated on the device (when running it for the first time), and a public key finger print will be sent to my server. (The certificate must be generated on first use). </p>
  
  <p>How can I generate a client certificate on and Android device from my application?</p>