Skip to content

Commit 94ef2e0

Browse files
authored
Merge pull request #178158 from daviburg/patch-11
Clarify why SNC certificate is required
2 parents d70935f + 48056a3 commit 94ef2e0

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

articles/logic-apps/logic-apps-using-sap-connector.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: divyaswarnkar
77
ms.author: divswa
88
ms.reviewer: estfan, daviburg, azla
99
ms.topic: how-to
10-
ms.date: 10/21/2021
10+
ms.date: 11/01/2021
1111
tags: connectors
1212
---
1313

@@ -334,7 +334,7 @@ Last, create new connections that use SNC in all your logic apps that use the SA
334334

335335
1. For **SNC Partner Name**, enter the backend's SNC name. For example, `p:CN=DV3, OU=LA, O=MS, C=US`.
336336

337-
1. For **SNC Certificate**, enter your SNC client's public certificate in base64-encoded format. Don't include the PEM header or footer.
337+
1. For **SNC Certificate**, enter your SNC client's public certificate in base64-encoded format. Don't include the PEM header or footer. Don't enter the private certificate here because the PSE might contain multiple private certificates, but this **SNC Certificate** parameter identifies the certificates that must be used for this connection. For more information, review the following note.
338338

339339
1. Optionally, enter SNC settings for **SNC My Name**, **SNC Quality of Protection** as needed.
340340

@@ -360,9 +360,37 @@ Last, create new connections that use SNC in all your logic apps that use the SA
360360

361361
The connector detects the PSE change and updates its own copy during the next connection request.
362362

363+
To convert a binary PSE file into base64-encoded format, follow these steps:
364+
365+
1. Use a PowerShell script, for example:
366+
367+
```powershell
368+
Param ([Parameter(Mandatory=$true)][string]$psePath, [string]$base64OutputPath)
369+
$base64String = [convert]::ToBase64String((Get-Content -path $psePath -Encoding byte))
370+
if ($base64OutputPath -eq $null)
371+
{
372+
Write-Output $base64String
373+
}
374+
else
375+
{
376+
Set-Content -Path $base64OutputPath -Value $base64String
377+
Write-Output "Output written to $base64OutputPath"
378+
}
379+
```
380+
381+
1. Save the script as a `pseConvert.ps1` file, and then invoke the script, for example:
382+
383+
```output
384+
.\pseConvert.ps1 -psePath "C:\Temp\SECUDIR\request.pse" -base64OutputPath "connectionInput.txt"
385+
Output written to connectionInput.txt
386+
```
387+
388+
If the output path parameter is not provided, the script's output to the console will have line breaks. Remove the line breaks of the base 64-encoded string for the connection input parameter.
389+
363390
> [!NOTE]
364391
> If you're using more than one SNC client certificate for your ISE, you must provide the same PSE for all connections.
365-
> You can set the client public certificate parameter to specific the certificate for each connection used in your ISE.
392+
> The PSE must contain the client private certificate for each and all of the connections.
393+
> You must set the client public certificate parameter to match the specific private certificate for each connection used in your ISE.
366394
367395
1. Select **Create** to create your connection. If the parameters are correct, the connection is created. If there's a problem with the parameters, the connection creation dialog displays an error message.
368396

0 commit comments

Comments
 (0)