I developed an Azure Function which is timer triggered. For this I created a self-signed certification :
New-SelfSignedCertificate -certstorelocation cert:\localmachine\my -dnsname "SP Az Func 3"
$pwd =ConvertT-SecureString -String "**************" -Force -AsPlainText
Export-PfxCertificate -cert cert:\localMachine\my\EB7D9E53BA1DF88AEDE1EA8CA3488CD794E0A9E9 -FilePath "c:\SPAzFunc2.pfx" -Password $pwd
Export-Certificate -cert cert:\localMachine\my\EB7D9E53BA1DF88AEDE1EA8CA3488CD794E0A9E9 -FilePath "c:\SPAzFunc2.crt"
Can I use this self-sign certificate to run our azure function on production? If not, then how we can gain/buy .pfx
and .crt
from authorized resources and provide a password, as we do in the self-signed certificate?
Thanks