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, 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 [] (MSC service thread 1-3) MSC000001: Failed to start service org.jboss.msc.service.StartException in service WFLYELY00004: Unable to start the service.
	at org.wildfly.extension.elytron@18.0.0.Final//org.wildfly.extension.elytron.KeyStoreService.start(
	at org.jboss.msc@1.4.13.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(
	at org.jboss.msc@1.4.13.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(
	at org.jboss.msc@1.4.13.Final//org.jboss.msc.service.ServiceControllerImpl$
	at org.jboss.threads@2.4.0.Final//
	at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(
	at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(
	at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$
	at java.base/
Caused by: keystore password was incorrect
	at java.base/
	at java.base/
	at java.base/
	at java.base/
	at org.wildfly.extension.elytron@18.0.0.Final//org.wildfly.extension.elytron.KeyStoreService.start(
	... 8 more
Caused by: 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