Create PKCS12 certificate from String certificate and key in JAVA

I have problem that I need to convert my certificate and primary key which I'm receive from IBM Cloud Certificate manager to PKCS12 which I need to use later on. I also need add alias name to that certificate. I receive something like this. See image of given certificates. Do you have any idea ? I can't move with this problem whole week ..