Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eSignature Release Follow up #60

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
43 changes: 43 additions & 0 deletions Scripts/SecretServer/eSignature/Delinea.PoSH.Helpers/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
v# Installation Steps of the PoSH Utils Delinea Helper Module

1. Open PowerShell with administrative privileges as this will be installed on the root drive in Windows under the Program Files folder.

2. Navigate to the root directory of your PowerShell module project.

3. Use the `Copy-Item` cmdlet to copy the module folder to the desired directory. The file: `.\Delinea.PoSH.Helpers\Utils.psm1` Needs to be in the directory: `$env:ProgramFiles\Thycotic Software Ltd\Distributed Engine\Delinea.PoSH.Helpers\`

```powershell
Copy-Item -Path ".\Delinea.PoSH.Helpers\Utils.psm1" -Destination "$env:ProgramFiles\Thycotic Software Ltd\Distributed Engine\Delinea.PoSH.Helpers\" -Recurse -Force

## If the Error Occurs:

```powershell
Copy-Item : Could not find a part of the path 'C:\Program Files\Thycotic Software Ltd\Distributed Engine\Delinea.PoSH.Helpers\'
```

## The Issue is Caused Because the Path Does Not Exist, Run This Command in an Admin Powershell Terminal:

```powershell
if (-not (Test-Path -Path "$env:ProgramFiles\Thycotic Software Ltd\Distributed Engine\Delinea.PoSH.Helpers" -PathType Container)) {
New-Item -Path "$env:ProgramFiles\Thycotic Software Ltd\Distributed Engine\Delinea.PoSH.Helpers" -ItemType Directory
}
```

## The Output Will Show successful:

```powershell
Directory: C:\Program Files\Thycotic Software Ltd\Distributed Engine


Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 1/30/2024 2:59 PM Delinea.PoSH.Helpers
```

## Then Run the Command Again and it Will Copy Over.

- Check it by Running:

```powershell
Get-Content "$env:ProgramFiles\Thycotic Software Ltd\Distributed Engine\Delinea.PoSH.Helpers\"
```
Original file line number Diff line number Diff line change
@@ -1,35 +1,6 @@
#Args used for development (Remove before pushing to production):

$args = @("Advanced","https://demo.docusign.net", "account-d.docusign.com", "c5473482-00fc-4e91-b6cd-476347640bbc", "f55537f1-0d35-490c-b4aa-960e203643fb", "-----BEGIN PRIVATE KEY-----
MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDxq/UtsJS3GEgT
yR051dKlCj62rF6FjgTj6mcH4x5xHQ0KfKP98+7tnXQpqXhrxSIvs1QBjNT6xqAd
6PpdIXZ0yCVxexpQmBoIXmbvW6fOrDams2JFD/pNUpTPOQo9fy5BjOAcaEVQTCwp
xgSduak6DbAN8yTU7th9ruNCAnyxekXLfZtQ2G6MOSPKfTzkrO6hGK0JbG5ZYJ+f
qR9BCvLzZTwHTU5YeztIKPJA6rG/a0eyoNyZG+2NLW9fUk0z2B0CAIBPTB0vi1Wu
Ek4jHONX6wO7zJMGOjGV49ZX7YFVTs3aoRQkShsTZ9r5mUszjfDyg8bvV91ZJ8sc
NPJeIP+VAgMBAAECggEAVbTQLLX058IavbmTPdGQ9KrfdtVGaELnhRS6GVf4kdDl
sRRm7Ec4MtimO6g4Zq/w4c3NOweA+La8Th8zuxeE9QGOFeK8gFyQzur7wmNU7byx
XQk9DpUOBaIF2D+4W/rgoqqdSDXKbyG0f9QUCwOu+kGkcC4Mn99cs6X0PpK3OhEc
g2QNyuXNYKd8zfMAWsZUAIQ5ev0a9/o0ioXWn9h6+UbE/OW22qWbIojEhVGYxU48
j8SqLn+Go8kqT2QSPlKg5UOQXuRLBlgVJs5Vu149As1CwcqsFGj82tsBoDkPU35X
fx1979ghjKvHg3idqCpmUhzsucfx/9nGXaVwvvsVeQKBgQD77vvgkXq8rMyPaez+
8dij4Jb7l7jdzp4yE5RFRSM7Gc4woUxYdxsl4JaVYDwGt+0cXYqtLB/WdOVSyKiy
Wwv9Tzt1Ca8ErxW50NZBHTi+kEZcV1X0tVspHEj4I/n6WMpigzUoJE6OMP/mLIoG
iErLs20hQyZd2u0vUkZUEuZVwwKBgQD1kpImb+7+4aO5b7MWsffWoJsjA0Ne9vQT
ZWqN1TtgJ6RTPS0WZC3QzfEkcC2v0lj8Un7pfhrDoly1MyzKxx7UYc7I7/UPC1cx
NivxEkWYno5SPQmes1RYmLYoHnciTrB9FLTkhHFYte/OvjXqtzOQyWra6L5xSVyT
NC42RJQHxwKBgQDvWgYDPTQWvTU7q692J99jEqVfMq54TS0O9nsPtLfcFpBGs3gN
NFueiNmH4X4mA+hJ4rU2AY3d+gFFvU5I5Sdm6jfa4fBdytohR7/G7TRUGE5AvNj1
PLf3PuA0oDmHF4RwQ6flE1luzi7RR896lVI6ZaVwzJNO6AgfxVL73VjocQKBgQCS
aOWL1xZ1jc+QQmFSuZ5arvxvXoWvO6r/WWqyzxuMU3YsTn/wJqAOKoqHv/3tIor9
PK3/xbhtRQLi4XTmHNtrojioIjBH3OoKJBMEsnEd8gJGU6/Fl4NFIx8PQkKjCKk+
mbbTu4bcbfRgnZUFsF4lB4EWrMbGQgfYl7apki9zhwKBgQDNFohJIsUaRyGkpbvg
tfes0VV7oQFGe2jndfMrb+JGWBr5fj5v8NGXUIQP3QylbMVizQW3Y5IyqWtL/ivp
LeN8H/p+8dCZLTpOpchKmrcY59vnOcfbFmJNwLJhEyR/eHAwR6KsAc/WLSsSf6tF
dnBi8hMJTK+AnwGF1JhtlNSx4w==
-----END PRIVATE KEY-----", "23836283","Sales")
Import-Module -Name "c:\temp\Utils.psm1"
#Import-Module -Name "$env:ProgramFiles\Thycotic Software Ltd\Distributed Engine\Delinea.PoSH.Helpers\Utils.psm1"
Import-Module -Name "$env:ProgramFiles\Thycotic Software Ltd\Distributed Engine\Delinea.PoSH.Helpers\Utils.psm1"
#region define variables
#Define Argument Variables

Expand All @@ -46,9 +17,9 @@ Import-Module -Name "c:\temp\Utils.psm1"


#Script Constants
#[string]$LogFile = "$env:ProgramFiles\Thycotic Software Ltd\Distributed Engine\log\Docusign-eSignature-Discovery.log"
[string]$LogFile = "c:\temp\Docusign-eSignature-Discovery.log"
[int32]$LogLevel = 3
[string]$LogFile = "$env:ProgramFiles\Thycotic Software Ltd\Distributed Engine\log\Docusign-eSignature-Discovery.log"

[int32]$LogLevel = 2
[string]$logApplicationHeader = "Docusign eSignature Discovery"
[string]$scope ="signature impersonation"
#endregion
Expand Down
5 changes: 5 additions & 0 deletions Scripts/SecretServer/eSignature/Instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ More information can be found [here](https://developers.docusign.com/docs/esign-
> [!NOTE]
> Field descriptions and details can be found at [Docusign JWT structure and properties](https://developers.docusign.com/platform/auth/jwt/jwt-get-token/#see-details-jwt-structure-and-properties).

## Install the Delinea Utils Powershell Module

This module contains to commandlets that are used within this script and the ine installation must be run on all Distributed Engines that will participate in running the scripts provided in this integration.
- Follow the instructions provided [Here](./Delinea.PoSH.Helpers/readme.md) to install the module.

## Creating secret template for Docusign eSignature Accounts

### eSignature User Account Template
Expand Down
Loading