2 # openssl/certtool/sslServer compatibility 
   8 set CERT_FILE_PEM
=new.cert.pem
 
   9 set CERT_FILE_DER
=new.cert.der
 
  10 set PRIV_RAW_KEY_PEM
=new.key.pem
 
  15 echo Preparing to delete keychain 
$KC_NAME. Ctl
-c to abort
, or....
 
  17 rm -f ~
/Library
/Keychains
/$KC_NAME 
  20 # Cert and key both in PEM Format 
  22 set cmd
="certtool i $CERT_FILE_PEM k=$KC_NAME c r=$PRIV_RAW_KEY_PEM f=1 p=$KC_NAME" 
  26 # Run an SSL session using this cert/priv key 
  28 set cmd
="sslServer k=$KC_NAME z=$KC_NAME" 
  32 # wait for server to settle down 
  36 # and one ping with cert dump 
  38 set cmd
="sslViewer localhost P=1200 c t a $CERT_FILE_DER"