Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Chandrakanth_c Chandrakanth339

🏠
Working from home
  • India
View GitHub Profile
@Chandrakanth339
Chandrakanth339 / certificateKeytool.md
Created Jun 21, 2018 — forked from xdu/certificateKeytool.md
generate self signed certificate with keytool
View certificateKeytool.md

To generate a self-signed SSL certificate using the keytool command on Windows, Mac, or Linux:

  • Open a command prompt or terminal.

  • Run this command:

    keytool -genkey -keyalg RSA -alias tomcat -keystore selfsigned.jks \ -validity -keysize 2048

Where <days> indicate the number of days for which the certificate will be valid.