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

1.2.12 is not backward compatible, if you start using .net 5 #57

Open dmikov opened 3 years ago

dmikov commented 3 years ago

The PR states that it will be backward compatible, but after migrating our project to dot.net 5.0 all previous licenses fail signature validation. Due to the fact they were signed with BouncyCastle key pair and now try to validate with OpenSsl. Give Asn1 corrupted error. I think BouncyCastle compresses the keys and OpenSSL doesn't. Maybe due to the fact that before it was forced to named elliptic curve and now in OpenSsl it is different one.

kfrancis commented 2 years ago

Yea, you have to generate a new license. The code is backwards compat, but as you noticed the generated licenses aren't - at least in my experience.