# openssl pkcs12 -in SOA.p12 -clcerts -out SOA.pem
# openssl x509 -inform PEM -outform -DER -in SOA.pem -out SOA.der
# java edu.dartmouth.greenpass.bootstrap.ExtractKey -i SOA.der -o SOA.pub
The simplest cookbook command is repeated below.
To create a certificate and a keypair, use the command
openssl req -new -x509 -keyout certkey.pem -out cert.pemAnswer the prompt questions, and an x509 certificate will be generated in the cert.pem file. Don't forget to protect the certkey.pem file, as that contains the private key.
The bootstrap script uses two variables, hardcoded for each script.
A hex hash of the delegator, and the name of the file containing the SDSI/SPKI certificate.
# cp bootstrap.sh user_name_bootstrap.sh
# java edu.dartmouth.greenpass.bootstrap.ExtractKey -x md5 -i SOA.derThe Output is hex hash value needed below, copy and paste into bootstrap.sh
# openssl pkcs12 -in user_cert.p12 -clcerts -out user_cert.pem # openssl x509 -inform PEM -outform -DER -in user_cert.pem -out user_cert.der
# java edu.dartmouth.greenpass.bootstrap.BootstrapTool SOA.p12 user_cert.der 365 SOAtoUser.spkiAdditional information on SDSI/SPKI can be obtained
HEX_HASH=(value of hex hash from SOA or delegator) SPKI_FILE=(name of SPKI file above)
# chmod +x user_name_bootstrap.sh