Welcome to the community, thanks for reaching out!
After a quick test I wasn’t able to reproduce this on my end, could you please confirm how the certificate was created and if it has any scoping on the variable?
Has your certificate been configured in the project variables similar to mine below, or are you using a LibraryVariableSet for the certificate?
Certificate was created from a step template we use in Octopus where you enter in as deployment target the CA server, then you enter in site name, enter the certificate template on the CA, enter in user creds and it creates a cert and uploads to Octopus and you can view them under Certificates.
Its configured like yours, I’m guessing one issue could be that we have 3 different certs stored in the SSLCertificate variable and scoped to different environments. In the Import Certificate step template for Runbook I set environment to Production and maybe having 2 scoped to production is causing issues?
Just an update I tried it with another project and the step template works perfectly but that project only had two certs and both were scoped to 1 separate environment.
Thanks for the update, that’s great to hear another project is working ok with less scoping!
Unfortunately I haven’t been able to repro this on my end, all my tests playing around with scoping are working ok, however I’d still like to get to the root cause of this error.
Would you be willing to share your Task logs with Variable Logging enabled? That should give me all the info I need to see exactly what’s going on with the certificate evaluation.