microsoft/service-fabric-issues

Ambiguous ASN1 bad tag value met error causing deployment failure

alm0st907 opened this issue · 0 comments

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.