3
votes

I got following error when I try to use VSTS to deploy application to Azure secure cluster

An error occurred attempting to import the certificate. Ensure that your service endpoint is configured properly with a correct certificate value and, if the certificate is password-protected, a valid password. Error message: Exception calling "Import" with "3" argument(s): "Cannot find the requested object.

I copied certificate base64 string and password to Services Endpoint config. Should I do other option to let it work?

1
Do you use on premise build agent? Can you deploy/publish Service fabric through Visual Studio directly?starian chen-MSFT
How do you get certificate base64 string?starian chen-MSFT
I got the certificate base64 string by selecting corresponding KeyVault in azure > Secrets > Select certificate > Select Version > Click Show secret value and copy the value. I refered to this blog to create a self-signed certificate and add to KeyVault (blogs.technet.microsoft.com/kv/2016/09/26/…)starian chen-MSFT
@starain-MSFT I can deploy used VS, I used powershell to get base64 string. I used certificate which create by admin.Eric Wang
Try to get the value in the azure portal, selecting corresponding KeyVault in azure > Secrets > Select certificate > Select Version > Click Show secret value and copy the value.starian chen-MSFT

1 Answers

1
votes

Found the problem, the url in service endpoint should use https