title: How can I create a sha256 fingerprint in openssl
body: <p>I want to sha256 the fingerprint Use the openssl. 
  I tried, but you have to sha1. What will i do?</p>
  
  <p>I'm using OpenSSL 1.0.1f.</p>
  
  <p>commands</p>
  
  <pre><code>openssl md5 * &gt;rand.dat
  
  openssl genrsa -rand rand.dat -aes256 2048 &gt; server.key
  
  openssl req -new -key server.key -sha256 -config openssl.cfg &gt; server.csr
  
  openssl x509 -fingerprint -sha256 -in server.csr -req -signkey server.key -extensions v3_req -extfile openssl.cfg -out server.cer
  </code></pre>
  
  <p>Changed from The default is the following:</p>
  
  <pre><code>[ CA_default ]
  default_md  = sha256    # Change
  
  [ req ]
  req_extensions = v3_req     # Uncomment
  </code></pre>