Convert the line endings from Windows type line endings to Unix type line endings. There are multiple ways to do this. The following is an example using Notepad++
Open the certificate file in Notepad++
Navigate to Edit > EOL Conversion > Unix (LF)
Save the file
Repeat for the key file and any other certificates needed.