SSL error after certificate update

Good afternoon,
I need help setting up https//domain:8443.
I use the keycloak container, in the compose the volume of /keycloak_data:/etc/x509/https was created, I put the domain.crt and domain.key certificates and changed the names to tls.key and tls.crt.
Then I accessed the docker container exec -it container name /bin/bash.
I went to the /opt/jboss/tools/ folder and ran x509.sh, the https-keystore.jks https-keystore.pk12 files are created in the /opt/jboss/keycloak/standalone/configuration/keystores folder.
But when I restart the container I get the error:

15:33:16,583 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service org.wildfly.security.key-store.kcKeyStore: org.jboss.msc.service.StartException in service org.wildfly.security.key-store.kcKeyStore: WFLYELY00004: Unable to start the service.
	at org.wildfly.extension.elytron@18.0.0.Final//org.wildfly.extension.elytron.KeyStoreService.start(KeyStoreService.java:200)
	at org.jboss.msc@1.4.13.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
	at org.jboss.msc@1.4.13.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
	at org.jboss.msc@1.4.13.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
	at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
	at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
	at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
	at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1363)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.io.IOException: keystore password was incorrect
	at java.base/sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:2116)
	at java.base/sun.security.util.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:243)
	at java.base/java.security.KeyStore.load(KeyStore.java:1479)
	at org.wildfly.security.elytron-base@1.18.1.Final//org.wildfly.security.keystore.AtomicLoadKeyStoreSpi.engineLoad(AtomicLoadKeyStoreSpi.java:53)
	at java.base/java.security.KeyStore.load(KeyStore.java:1479)
	at org.wildfly.extension.elytron@18.0.0.Final//org.wildfly.extension.elytron.KeyStoreService.start(KeyStoreService.java:163)
	... 8 more
Caused by: java.security.UnrecoverableKeyException: failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
	... 14 more