Change from Letsencrypt to Wildcard certificate

Hey Guys,

i am running a nextcloud 16.0.3 with Letsencrypt certificate configured in /etc/apache2/sites-enabled/nextcloud.conf its looking like this:
SSLCertificateFile /etc/letsencrypt/live/nextcloud.domain.de-0001/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/nextcloud.domain.de-0001/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/nextcloud.domain.de-0001/chain.pem

i have an existing Wildcard certificate for *.domain.de in .p12 format. how can i use this *.domain.de.p12 certificate in nextcloud?

Might this help you?:

The p12/pfx format is a composite format where the key, cert, and chain can be in one file. This is mostly used by Windows. You can extract the various parts using openssl pkcs12.

Once you have them, it’s just a matter of putting them in your virtual host config. Don’t forget you will need to disable certbot too if you had it updating that cert.

i found and tryed this:
openssl pkcs12 -in path.p12 -out newfile.crt.pem -clcerts -nokeys
openssl pkcs12 -in path.p12 -out newfile.key.pem -nocerts -nodes

but these only generate the cert.pem and key.pem. how can i get the chain.pem