Pastebin

Paste #205:

< previous paste - next paste>

Pasted by Flawless

Download View as text

makecert.sh:

#!/bin/bash
TMP1=`tempfile`
TMP2=`tempfile`
TMP3=`tempfile`
keytool -export -keystore $1 -alias $2 -storepass $3 -file $TMP1
openssl x509 -out $TMP2 -outform pem -text -in $TMP1 -inform der
openssl pkcs8 -inform PEM -nocrypt -in <(java ExportPriv $1 $2 $3) -out $TMP3
openssl pkcs12 -export -out exported.pfx -inkey $TMP3 -in $TMP2
rm -fv $TMP1 $TMP2 $TMP3

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.