title: Difference between keytool and openssl?
body: <p>We can generate certificate through keytool like this </p>
  
  <pre><code>keytool -genkey -alias initcert  -keyalg  RSA  -keystore keycloak.jks  -validity 365  -keysize 2048
  </code></pre>
  
  <p>and through openssl also like this</p>
  
  <pre><code>Openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout tls.key -out tls.crt -subj "/CN=nginxsvc/O=nginxsvc"
  </code></pre>
  
  <p>What is the difference between these two technique and which we should use?</p>