How to export .key and .crt from keystore
Keytool (available in JDK) allows you to export certificates to a file:
keytool -exportcert -keystore [keystore] -alias [alias] -file [cert_file]
To export regular keys you should use -importkeystore command (surprise):
keytool -importkeystore -srckeystore [keystore] -destkeystore [target-keystore] -deststoretype PKCS12