"Invalid license file" - "The license file you provided is invalid or corrupted" popup when running DNA
Symptom
Upon starting up DNA the following message pops up:
"Invalid license file" - "The license file you provided is invalid or corrupted".
In the trace log you will see the following:
DNAPR138E Error verifying license. Exception data: System.InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.
at System.Security.Cryptography.SHA256Managed..ctor()
at ..(DNALicense signedLicense)
Environment
v5.0;v5.1;v5.3;v5.5;v6.0;8.1;9.6;9.7;9.8;9.9;9.9.5;9.10;10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;11.1;11;11.2;11.3 Discovery and Audit (DNA) Central Policy Manager (CPM) DNA
PAS
Cause
FIPS is enabled on the computer where DNA runs.
Resolution
Disable FIPS machine policy checking for DNA by performing the following:
In the DNA.exe.config file located within the DNA zip, add the following XML runtime setting in the <runtime> section:
<enforceFIPSPolicy enabled="false"/>Example:
<runtime>
<generatePublisherEvidence enabled="false"/>
<loadFromRemoteSources enabled="true"/>
<enforceFIPSPolicy enabled="false"/>
</runtime>
Please reference the following Microsoft article at the following link: https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/runtime/enforcefipspolicy-elementOR
Disable FIPS in the local security policy using the following steps:
A) Open the administrative tools -> Local Security Policy.
B) Select the following folder: Security setting -> Local Policies -> Security Options
C) Disable the following setting: "System Cryptography: Use FIPS compliant algorithms for encryption"
Note: this setting may be controlled by the enterprise group policy.
OR
Might be that the file was internally changed by email filter.
A) Open the license file in Notepad or Notepad++
B) Check first line of the file. If it looks like the sample below, it was modified:
<DNALicense xmlns="https://urldefense.com/v3/__http://dna.cyber-ark.com/DNALicense.xsd__;!!DHXL-mcXkJmB!9PdcgNybmst8N7SWTSeQk5--FMT0kiqS9Jn_4ExbuJ0ZN6vBgEn0Q7VxzTjugMERzU2X2Ndj6fjL5WZY0gSh0w$ ">
C) Replace first line with this one:
<DNALicense xmlns="http://dna.cyber-ark.com/DNALicense.xsd">
D) Save changes and retry
Additional Information
Details
SYMPTOM:
Upon starting up DNA the following message pops up:
"Invalid license file" - "The license file you provided is invalid or corrupted".
In the trace log you will see the following:
DNAPR138E Error verifying license. Exception data: System.InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.
at System.Security.Cryptography.SHA256Managed..ctor()
at ..(DNALicense signedLicense)
PROBLEM:
FIPS is enabled on the computer where DNA runs.
SOLUTION:
Disable FIPS in the local security policy using the following steps:
A) Open the administrative tools -> Local Security Policy.
B) Select the following folder: Security setting -> Local Policies -> Security Options
C) Disable the following setting: "System Cryptography: Use FIPS compliant algorithms for encryption"
Note: this setting may be controlled by the enterprise group policy.