#!/bin/sh
openssl pkcs12 -in $1 -out /tmp/$$.pem -clcerts
openssl pkcs12 -export -in /tmp/$$.pem -out $2
rm /tmp/$$.pem
