This guide shows the steps to perform a simple key verification using one of our SDKs/libraries.
Add client SDK/library
Add namespace
Add key verification script
Result is null
RSAPubKey
auth
ProductId
licenseKey
is missing. Please check the beginning of the tutorial on how to find them.Helpers.GetMachineCode issues (in Windows environments)
'System.MethodAccessException' when calling Helpers.GetMachineCode
System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
. To fix this, we have added a boolean flag in Helpers
class. Before calling Helpers.GetMachineCode
or Helpers.IsOnRightMachine
, please set Helpers.WindowsOnly=True
.The namespace is missing
License verification is successful but signature verification fails
Issue with activation even if api.cryptolens.io is accessible in the browser
app.cryptolens.io
and api.cryptolens.io
in Microsoft Edge but unable to activate the application, the issue could be both that they are using a proxy, connect to Active directory or that their IT department has blocked TLS of certain versions.To fix these issues, we recommend to:Issues with Newtonsoft.Json on .NET 4.8
The expiration date cannot be converted to a datetime object. Please try setting the period to a lower value
Issues with CA/SSL verification
Could not contact the server. Error message: <urlopen error [SSL: CERTIFICATE_VERIFY _FAILED] certificate verify failed: unable to get local issuer certificate (ssl.c:1125)>
certifi
package to be installed.Running a script in the Python environmentAn alternative is to run script in their environment that should fix the issue. You can read more about it in this thread: #65SummaryThe key takeaway is that it is better to address the issue with missing CA on the user side, since this issue will typically be user-specific. If that is not possible, you can use the code above to manually set the path to CA files. Although we have mentioned turning off SSL verification temporarily, it should not be used in production. Key.activate
takes care of signature verification internally, but some other methods do not.Proxy
Turning off SSL (for troubleshooting only)