Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Expand
titleHow to use implement WS-Security in .NET to encrypt for Encrypting and sign Signing SOAP Messages with MPDIS
  1. Create a .net Console Application

  2. Add WSE3.0 via Nuget

    image-20240926-171832.png
  3. Create WS client stub via “Add Service Reference”

    1. image-20240926-172716.png

  4. Run mmc.exe and add certificates snap-in to import certificates/key-pair

    1. Add certificate snap-in, and make sure “Computer account” is chosen.

      1. image-20240926-172544.png

    2. Import mpdis.cer(attached) to “Trusted People”

      1. Path : \\Tc4s0a\groups\AARA\AARAD\Software Library\Developer Tools\DotNet DAPLS WS Client

      2. image-20240926-172643.png

    3. Import dapls.12(attached) to “Personal”

      1. Path : \\Tc4s0a\groups\AARA\AARAD\Software Library\Developer Tools\DotNet DAPLS WS Client

      2. You will be asked for the password, enter dapls

    4. Install winhttpcertcfg  from https://www.microsoft.com/en-ca/download/details.aspx?id=19801

    5. Run the following command to allow the user who runs the application to access the installed private key( installed at step c)

      "C:\Program Files (x86)\Windows Resource Kits\Tools"\winhttpcertcfg.exe -g -c LOCAL_MACHINE\My -s dapls -a "MachineName\\Username"

(Make sure to change the username in REDto your environment)

Expand
titleHow Steps to create Create an Executable file File for a Canadian Batch Process
  • Update the Build Output Path:

    • Open your project properties.

    • Navigate to the Build section.

    • Set the Output Path to your desired directory where the executable will be saved

    image-20240926-173014.png
  • Build the Project:

    • Compile your project by selecting the Build option from the menu.

    • Ensure there are no errors in the build process.

      image-20240926-173228.png
  • Copy Files to Server:

    • Locate the output folder specified in your build settings.

    • Copy the generated executable file and any necessary dependencies from this folder.

    • Navigate to the server where you want to deploy the executable.

    • Replace the existing executable file on the server with the new one you just copied.

    image-20240926-173456.png
  • Verify the Deployment:

    • Test the executable on the server to ensure it runs correctly