Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 3 Next »

Certificate credentials support a certificate file upload and an optional password.

image-20241008-192837.png

Input Name

Required

Description

Input Type

Certificate

Yes

Certificate which will have its content stored in encrypted format.

File

Password

No

Password for accessing the certificate (optional).

Text

Referencing Certificate Values As Properties

A Certificate credential that is assigned to an encrypted property within FlexDeploy can be referenced for property replacement or groovy variables. In order to reference the certificate, then only the property code can be used. If you want to access the password, then attach the suffix “_PASSWORD” (case sensitive) to the property code.

For example, we have an encrypted property on this workflow with the code WEB_CERTIFICATE.

image-20241008-184130.png

We could have a step in our workflow to execute an operation that will connect to an external system using the certificate of the property configured on the project. Below is an example of referencing our property in a groovy script, but it would be similar for environment variables or property replacement within files. For accessing the certificate then we would use the code WEB_CERTIFICATE. For accessing the password, then it would be WEB_CERTIFICATE_PASSWORD. Note that if referencing the password like this, it could fail if the actual value of the property during execution is not a Certificate type credential.

image-20241008-184505.png
  • No labels