For PGP encryption and signature, usually we use PGP command line tools for test purpose and finally use C# application for production. Mine is a Net Core 2.0 console application using NuGet package PgpCore, https://github.com/mattosaurus/PgpCore. PgpCore is based on BouncyCastle.NetCore which supports the standard OpenPGP keys. Here w use the popular GnuPG (GPG) tools to generate OpenPGP key pair. Download and Install GPG for Windows Download from https://gpg4win.org/download.html . By default the installation will create two folders (here we use command line tools only): Gpg4Win UI (Kleopatra): C:\Program Files (x86)\Gpg4win Command line tools: C:\Program Files (x86)\GnuPG\bin Generate a GPG Key Pair For GnuPG 2.2.1 and above: C:\Program Files (x86)\GnuPG\bin> gpg --full-generate-key For old versions of GnuPG: C:\Program Files (x86)\GnuPG\bin> gpg --gen-key Common GPG Commands List public keys: gpg --lis...
Windows Server 2016: Fails to Ping Localhost Issue: ping localhost fails (ipv6 message were seen). Solution: Our system administrator ran Microsoft Fix to give preference to IPv4 over IPv6 https://support.microsoft.com/en-ca/help/929852/guidance-for-configuring-ipv6-in-windows-for-advanced-users SQL Server 2017: Fail to Open Configuration Manager Issue: Cannot connect to WMI provider Solution: http://tritoneco.com/2014/05/15/fix-sql-configuration-manager-cannot-connect-to-wmi-provider The following command must be run as Administrator (140 is for SQL Server 2017): C:\Program Files (x86)\Microsoft SQL Server\140\Shared> mofcomp sqlmgmproviderxpsp2up.mof SharePoint 2016: Unable to Upload Multiple Documents Issue: When directly working on SP 2016 Server, no response when clicking on "Upload files using Windows Explorer instead" Solution: 1. Try to upload files on a client computer where WebClient service is available 2. If working on the SP Server, ple...
Jerryzy • Follow 10,436 Reputation points Apr 1, 2021, 9:55 PM Hi @Lakshman Bana , PnP.Framework Library supported to use App Id and App Secret to get the ClientContext and this library supported both .NET Framework and .NET Standard: Please first install PnP.Core as this is the dependent package for PnP.Framework: Copy Install-Package PnP.Core -Version 1.1.0 Install-Package PnP.Framework -Version 1.4.0 Then authentication with App Id and AppSecret ( register in https://siteurl/_layouts/15/AppRegNew.aspx) like this: Copy using Microsoft.SharePoint.Client; using PnP.Framework; ClientContext ctx = new AuthenticationManager().GetACSAppOnlyContext("SiteUrl", "AppId", "AppSecret"); ctx.Load(ctx.Web); ctx.ExecuteQuery(); Here is a detailed blog for your reference: https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs Recommend: M365 – SharePoint Online – CSOM – Getting SharePoint client context using ...
Comments
Post a Comment