I have a wildcard SSL certificate file in pfx format (Include private key export from Windows Server). I'm little confuse with smtpd_tls_cert_file ,smtpd_tls_key_file settings. How can i prepare these cert_file and key_file files with openssl command. Actually i know how i create private key file but, i don't understand clearly tls_cert_file format
In this piece of code, why write to a .tmp file then immediately rename it without any prior processing ?
The mv command will be an atomic operation, whereas the command preceding it probably won't be. You wouldn't want that pem file to be in an invalid state if some other command comes along and tries to use it.