Last active
February 1, 2022 06:28
-
-
Save sasajib/b9b5d46f0a9d6ba65a5247ac9bc56089 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem [https://www.youtube.com/watch?v=AxfZ5NOoDxo] | |
rem ['This batch file was created by Ioannis Ntizoglou on: 28/01/2021] | |
rem ['Before you run this batch file you will need to:] | |
rem ['1 - install the latest Java JDK (visit: https://www.oracle.com/uk/java/technologies/javase-downloads.html)] | |
rem ['2 - Go to the C: drive and locate the JDK's Bin folder:] | |
cd "C:\Program Files\Java\jdk-15.0.2\bin" | |
rem ['3 You can add your password here so you will not forget: Mypassword is: 6charactersAndNumbers] | |
rem ['4 The following line will generate the certificate: (Don't forget to replace the 'C:\Users.....\appname.keystore' path and name)] | |
keytool -genkeypair -v -keystore C:\Users.....\appname.keystore -alias TestMobile -keyalg RSA -keysize 2048 -validity 10000 | |
rem ['The JKS keystore uses a proprietary format. It is recommended that you migrate to PKCS12, an industry standard format, using the (Don't forget to replace the 'C:\Users.....\appname.keystore' path and name)] | |
keytool -importkeystore -srckeystore C:\Users.....\appname.keystore -destkeystore C:\Users.....\appname-PKCS12.keystore -deststoretype pkcs12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment