dnauck / Portable.Licensing

Portable.Licensing is a cross platform software licensing framework which allows you to implement licensing into your application or library. It provides you all tools to create and validate licenses for your software.
http://dev.nauck-it.de/projects/portable-licensing
MIT License
592 stars 173 forks source link

What is this? #30

Open ghost opened 8 years ago

ghost commented 8 years ago

System.ArgumentException: illegal object in GetInstance: DerOctetString

at Org.BouncyCastle.Asn1.DerBitString.GetInstance(Object obj) at Org.BouncyCastle.Asn1.X509.SubjectPublicKeyInfo..ctor(Asn1Sequence seq) at Org.BouncyCastle.Asn1.X509.SubjectPublicKeyInfo.GetInstance(Object obj) at Org.BouncyCastle.Security.PublicKeyFactory.CreateKey(Byte[] keyInfoData) at Portable.Licensing.Security.Cryptography.KeyFactory.FromPublicKeyString(String publicKey) at Portable.Licensing.License.VerifySignature(String publicKey) at Portable.Licensing.Validation.LicenseValidationExtensions.<>cDisplayClassd.bc(License license) at Portable.Licensing.Validation.ValidationChainBuilder.d__1.MoveNext() at LicenseGen.Program.Main(String[] args) in c:\Users\0xFireball\Programs\C#\ExaPhaser\Licensing\FireCryptEx\KeyGen\LicenseGen\Program.cs:line 39

ghost commented 8 years ago

if (validationFailures.Any()) { foreach (var failure in validationFailures.ToList()) Console.WriteLine(failure.GetType().Name + ": " + failure.Message + " - " + failure.HowToResolve); }

ArcherTrister commented 1 year ago

Maybe the public and private keys are confusing.