Hey @Stephen Mallin
Thanks for the providing the additional information on your function app. The plan your function is running on is Linux based. That means you need to you alter your code to reflect pulling certificates from in that OS.
See https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-certificate-in-code?tabs=linux#load-certificate-in-linuxwindows-containers for more information.