1 2 3
#!/bin/sh openssl pkcs12 -in "$1" -nocerts -out "$1.pem" -nodes openssl pkcs12 -in "$1" -nokeys -out "$1.crt"