Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is this? #30

Open
ghost opened this issue Jan 7, 2016 · 2 comments
Open

What is this? #30

ghost opened this issue Jan 7, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 7, 2016

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.<>c__DisplayClassd.b__c(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
Copy link
Author

ghost commented Jan 7, 2016

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

@ArcherTrister
Copy link

Maybe the public and private keys are confusing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant