SSL Cert Error in Azure Application Gateway
Asked Answered
C

5

9

We followed the guide to setup an SSL application gateway - https://learn.microsoft.com/en-us/azure/application-gateway/application-gateway-ssl-portal.

When I create the rule for https traffic, I get an error:

Failed to save configuration changes to application gateway 'xxxgateway'. Error: Data must be specified for Certificate /subscriptions/Subscription_ID/resourceGroups/RG/providers/Microsoft.Network/applicationGateways/xxxgateway/sslCertificates/xx_cert.

Can someone let me know what might be causing this issue?

Thanks

Cullie answered 28/2, 2017 at 2:57 Comment(1)
I encountered the same issue. I reached out to MS support and they suggested to remove the configuration directly from the Resource Manager code resources.azure.com.Ammieammine
A
14

I recently ran into this error and found that my application gateway hadn't finished updating after adding the https listener. After that completed, I was able to add rules.

Abyssal answered 21/11, 2017 at 22:4 Comment(2)
Encountered the same issue here. It took upwards of 25 minutes to finally complete.Cedell
I had to delete existing AG and recreate from scratch. Had to wait to complete each update process before making the next.Highroad
I
7

Open the following link to have a look at the details of your Application Gateway:

https://resources.azure.com/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}

There is an sslCertificates array with the certificates the Gateway can use. You can check the provisioning state of the certificate and the actual ID of the certificate to be used.

Immunology answered 25/6, 2018 at 21:5 Comment(0)
A
0

Adrian, I have tested and confirmed that updating an SSL certificate for offload works fine. The error is stating that when doing the put for creating the certificate with the API that there is no data. This could be caused by a bad password for the certificate. I would recommend re-exporting the private key for your certificate and try to upload it again.

Anthesis answered 7/3, 2017 at 4:26 Comment(0)
T
0

https://resources.azure.com/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}

If you navigate to your Application gateway, you should see the Data under Authentication certificate.

Sample:

"authenticationCertificates": [ { "name": "test", "id": "/subscriptions/XXXXXXXXXXXXXXXXXXXXXXXX/resourceGroups/Application-gateway-demo/providers/Microsoft.Network/applicationGateways/AppGWDemo/authenticationCertificates/test", "etag": "W/\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"", "properties": { "provisioningState": "Succeeded", "data": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tDQpNSUlEQWpDQ0FlNmdBd0lCQWdJUTZkTjhtOUhaWDZKRUlyMi9Nak5BaURBSkJnVXJEZ01DSFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" }, "type": "Microsoft.Network/applicationGateways/authenticationCertificates" }

If not, then click on Edit and add your authentication certificate over here. (Open your .cer cert in Wordpad and copy past the entire string over there and do a PUT operation)

Thread answered 11/11, 2018 at 13:30 Comment(0)
I
0

In my case, it was related to file permission on cert file

Ibanez answered 30/5 at 8:48 Comment(1)
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.Prepositive

© 2022 - 2024 — McMap. All rights reserved.