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/
SSLCertificateKeyFile /etc/letsencrypt/live/
SSLCertificateChainFile /etc/letsencrypt/live/

i have an existing Wildcard certificate for * in .p12 format. how can i use this * 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