Retrieve CommonName from certificate

Hello,

We’re trying to retrieve the CommonName from our certificates in octopus. It’s disscused in this thread here: Question with certificate variables and their properties
It looks like it has been implemented? But we can’t find any information about how to use it or what version it’s introduced in. We’ve tried these two formats with no luck:
certificate.Subject.CommonName
certificate.CommonName

Our current version of Octopus is 2019.3.0 LTS

Hi Calle,

Thanks for getting in touch! I’m very sorry about the confusion we’ve caused here. It looks like this variable was added in 3.17.11 so it’s available in your version. However it’s called certificate.SubjectCommonName, and it looks like we neglected adding it into our docs. I’ve gone ahead and updated the following page to include this. Thank you for pointing this out. :slight_smile:

Don’t hesitate to reach out if you have any further questions or concerns moving forward!

Best regards,

Kenny

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.