I have roamed the internet but found only solutions using keytool. The common solution using keytool is this here:
keytool -importkeystore -srckeystore keystore.jks -srcstoretype JKS -deststoretype PKCS12 -destkeystore keystore.p12
But how is this possible with OpenSSL?