microsoft / service-fabric-issues

This repo is for the reporting of issues found with Azure Service Fabric.
168 stars 21 forks source link

Ambiguous ASN1 bad tag value met error causing deployment failure #1685

Closed alm0st907 closed 4 years ago

alm0st907 commented 4 years ago

While trying to deploy a service to a cluster, the application fails due to a ASN.1 bad tag value met. We are using encrypted values and expecting to be able to decrypt them using the below settings.

await ServiceFabricRunner.Run(new ConfigurationBuilder() .AddJsonFile("config.json", true) .AddServiceFabricConfiguration(FabricRuntime.GetActivationContext(), options => { options.IncludePackageName = false; options.DecryptValue = true; }) );

The values in question are already in use and the encryption/decryption is happening against the same certificate in the service and the existing code. Googling the issue doesn't return anything useful to check into and figure out why the decryption is causing the deployment to fail.