Failed to save service certificates : Service dovecot failed

Operating system CentOS Linux 7.9.2009
Webmin version 1.981 Usermin version 1.823
Virtualmin version 6.17 Authentic theme version 19.83-2

Hello! When trying to copy SSL Certifcate for host to services using the button I get an error for dovecot: Failed to save service certificates : Service dovecot failed

Thank you

PS: I managed to solve it by adding the appropriate directives to dovecot config file manually.