{
  "Id": "40031734-bdd0-4586-872f-c98472a98088",
  "DisplayName": "Revoke CorpWebServer-MultiKey with Comment Update",
  "Description": "Update revocation comment for CorpWebServer-MultiKey profile.",
  "Key": "566",
  "KeyDisplayName": "ejbca7\\Corporate_CorpWebServer-MultiKey",
  "IsPublished": false,
  "WorkflowType": "Revocation",
  "Steps": [
    {
      "Id": "5820566b-bdc3-4242-ba3b-16aaad1e8bfd",
      "DisplayName": "Update Revocation Comment",
      "UniqueName": "PowerShell1",
      "ExtensionName": "PowerShell",
      "Enabled": false,
      "ConfigurationParameters": {
        "ScriptParameters": {
          "Comment": "$(cmnt)",
          "EDate": "$(effdate)",
          "SDate": "$(subdate)"
        },
        "ScriptContent": "# Declare your parameters at the beginning ($Comment, $SDate, and $Edate)\r\nparam(\r\n   [string]$Comment,\r\n   [datetime]$SDate,\r\n   [datetime]$EDate\r\n)\r\n\r\n# Append your additional text to the existing comment along with the submission and effective dates\r\n$Comment += \" - Revocation requested on \" + $SDate.ToString(\"g\") + \" and effective on \" + $EDate.ToString(\"g\")\r\n\r\n# Return the updated comment to the workflow in the original parameter as a hashtable\r\n$result = @{ \"Comment\" = $Comment }\r\nreturn $result"
      },
      "Signals": [],
      "Conditions": [],
      "Outputs": {
        "continue": "Email1"
      }
    },
    {
      "Id": "3849f038-0a2e-47c1-993e-2291b8d8b60b",
      "DisplayName": "Start-NOOP",
      "UniqueName": "StartNOOP",
      "ExtensionName": "NOOPStep",
      "Enabled": true,
      "ConfigurationParameters": {},
      "Signals": [],
      "Conditions": [],
      "Outputs": {
        "continue": "RevokeStep1"
      }
    },
    {
      "Id": "0e5b49cf-e3b3-4c27-9f5c-24cfcf8d6221",
      "DisplayName": "End-NOOP",
      "UniqueName": "EndNOOP",
      "ExtensionName": "NOOPStep",
      "Enabled": true,
      "ConfigurationParameters": {},
      "Signals": [],
      "Conditions": [],
      "Outputs": {}
    },
    {
      "Id": "32113bc3-9c15-4737-894a-b67e2df1d3e2",
      "DisplayName": "Revoke Certificate",
      "UniqueName": "RevokeStep1",
      "ExtensionName": "RevokeStep",
      "Enabled": true,
      "ConfigurationParameters": {},
      "Signals": [],
      "Conditions": [],
      "Outputs": {
        "continue": "PowerShell1"
      }
    },
    {
      "Id": "de967f1b-2f77-45bf-97aa-f8471368f04b",
      "DisplayName": "Send an Email",
      "UniqueName": "Email1",
      "ExtensionName": "Email",
      "Enabled": true,
      "ConfigurationParameters": {
        "Subject": "Revocation Complete for $(cn)",
        "Message": "Hello,\n\nThe following certificate has been revoked:\n\n<ul>\n  <li>DN: $(dn)</li>\n  <li>Thumbprint: $(thumbprint)</li>\n  <li>Serial Number: $(serial)</li>\n  <li>Issuance Date: $(issuancedate)</li>\n  <li>Expiration Date: $(expdate)</li>\n</ul>\n\nThe following comment was provided for the revocation:\n\n   $(cmnt)\n\nYour Certificate Management System",
        "Recipients": [
          "pkiadmins@keyexample.com"
        ]
      },
      "Signals": [],
      "Conditions": [],
      "Outputs": {
        "continue": "EndNOOP"
      }
    }
  ],
  "DraftVersion": 1,
  "PublishedVersion": 1,
  "Enabled": true
}