diff Makefile @ 483:84bab82d1f58

extract certificate from jks keystore
author Carl Byington <carl@five-ten-sg.com>
date Mon, 01 Jun 2020 15:47:47 -0700
parents 3a83f40439d7
children e88d48be89a8
line wrap: on
line diff
--- a/Makefile	Wed Apr 29 13:20:09 2020 -0700
+++ b/Makefile	Mon Jun 01 15:47:47 2020 -0700
@@ -45,6 +45,10 @@
 genkey:
 	keytool -genkeypair -keystore 510Connectbot.keystore -alias 510Connectbot -dname "cn=510Connectbot , ou=510Connectbot, o=five-ten-sg, o=com, c=US" -keyalg RSA -keysize 2048 -validity 10000
 
+exportkey:
+	keytool -export -alias 510Connectbot -file 510Connectbot.crt -keystore 510Connectbot.keystore
+	openssl x509 -inform der -in 510Connectbot.crt -out 510Connectbot.pem
+
 docs:
 	(cd xml; make)
 	(cd help; make)