Does anyone know what the SDK equivalent to this REST API is? Unfortunately, the SDK is so poorly documented that—after two full days of digging—I finally have to ask.
My prior research and things I’ve tried are detailed here.
Does anyone know what the SDK equivalent to this REST API is? Unfortunately, the SDK is so poorly documented that—after two full days of digging—I finally have to ask.
My prior research and things I’ve tried are detailed here.
2
Answers
As I indicated in the answer to my other post, a bring-your-own PFX cert to be used in an App Service Custom Domain binding has to be uploaded to a key vault first. Only then can it be deployed to the App Service certificate pool.
The sample code results in a managed cert, not a PFX cert, and managed certs don't support wildcards. If wildcard isn't a requirement, no problem. Proceed with caution, but proceed.
But if one is needed, here's how to push the cert from a vault to the PFX list for use in a binding:
Check my answer for the rest of it.
In order to Create or Update the Certificate with SDK you can refer this Github sample of Latest Azure.ResourceManager.AppService .Net sample.
Code from the github sample above:-
Complete code to manage Certificates of App Service:-
Output:-