changeset 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 0b26e5c290e3
children 2043bbaac86e
files 510Connectbot.crt 510Connectbot.pem Makefile
diffstat 3 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
Binary file 510Connectbot.crt has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/510Connectbot.pem	Mon Jun 01 15:47:47 2020 -0700
@@ -0,0 +1,20 @@
+-----BEGIN CERTIFICATE-----
+MIIDPjCCAiagAwIBAgIEU343wDANBgkqhkiG9w0BAQUFADBhMQswCQYDVQQGEwJV
+UzEMMAoGA1UEChMDY29tMRQwEgYDVQQKEwtmaXZlLXRlbi1zZzEWMBQGA1UECxMN
+NTEwQ29ubmVjdGJvdDEWMBQGA1UEAxMNNTEwQ29ubmVjdGJvdDAeFw0xNDA1MjIx
+NzQ1MzZaFw00MTEwMDcxNzQ1MzZaMGExCzAJBgNVBAYTAlVTMQwwCgYDVQQKEwNj
+b20xFDASBgNVBAoTC2ZpdmUtdGVuLXNnMRYwFAYDVQQLEw01MTBDb25uZWN0Ym90
+MRYwFAYDVQQDEw01MTBDb25uZWN0Ym90MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
+MIIBCgKCAQEAkitlOmNPApJJir/v9OzGOgMpafvpXwgc0QQuGVZ7BCYrM68whgL7
+GBsf35CsYJ+3vUD0tgl/TJ9wa8NMgT8CnTl+eIeriTR8AQ3EspsLJQVxY+k47RLM
+fOK00AiXrT7MeI43yFtCsgrvCqDt8SgROlNcmyVYlilg3MXUGcbuTXc9V4RLaR1x
+kfRHAqcoxsNgwEinh38ALDIUzgW7DL3VAfNM/2zWarEjtRlW1qbkEN2mNmzaSFtP
+emxhLmclFpUtIG1Gwol+sVyyiOToKqRzIzS7GWJIWqw1hJmOj+lDYgG+MgmnGG6L
+wkF7yQpvl77upbYSv+KqKgstLeasowlvcQIDAQABMA0GCSqGSIb3DQEBBQUAA4IB
+AQBZ5aK2J5+G0o4xYbAL/+1zL+AoWGHKhb5ctvKs16GN4BadS1v5zfmauTpwxdEI
+cKC+HwdudqM35RHh635xvXdylg+eBKopt7y6aPURnuylMkPjpriEKO1vAhG0KLuG
+YL/r8GROp532OBFkk+FXbwz6pIpdTUTUWw429aGYNuneisX5hlfT0fkZdI+O+scZ
+L2laSAQNnV0OP+6mNuy7B6Bx6TNCuUaA9Dg7FhRZ9HPTk8XqlUCISaR4akHsr1CV
+iGqRxQXnOz+mYisa96n8WWAUrHEByGNCtCii7ES9PWuvYX11hsKVehK1IWHVfqFp
+wC4zUbkGnPziEt1bCHYymV9X
+-----END CERTIFICATE-----
--- 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)