Skip to content

How to validate offline license file with the NetLicensing C# library #103

Closed Answered by r-brown
r-brown asked this question in Questions
Discussion options

You must be logged in to vote

In order to use Offline validation using License File publicKey need to be set in the validation contect.

Please find below sample code for C# library:

using System;
using NetLicensingClient.Entities;

namespace NetLicensingClient
{
    class NetLicensingClient_demo
    {
        static int Main(string[] args)
        {
                string publicKey = @"-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAu5grobcnjPhzOvyG05DO
OW6SlUIKa7omhJLIXl8D8fohuHUaZLoGA2Fot4OP/qFSg0DK4egbCbU+pDrasMvK
vNTCMzw0ypzbyBEaYSm6wtEeU45ppawj0HjOh3NRp2Ds0hR8xSMKFRc/4d87hskj
yjKXOqoOZhqjXwYk7ocIe6ADPpF4YCs5eY4/3CL1JnItdlKQRsl8ZJ0Yqe+figf9
agCWvQ0O0faRdmgmr7eUhU9aXNvSJaVJXbg6TjhhxVujzehF8sh…

Replies: 1 comment

Comment options

r-brown
Oct 26, 2023
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by r-brown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
1 participant
Converted from issue

This discussion was converted from issue #64 on October 29, 2023 22:32.