bcgit / pc-dart

Pointy Castle - Dart Derived Bouncy Castle APIs
MIT License
237 stars 122 forks source link

Trouble while trying to create a Ecc CSR #52

Closed ranbeuer closed 1 year ago

ranbeuer commented 4 years ago

I'm trying to create a Ecc CSR while using the UID parameter, but I get the message that it's not supported yet. Will this be supported in a later release?

TMSantos commented 2 years ago

same problem, any update?

TMSantos commented 2 years ago

@ranbeuer adding:

{ 'identifierString': '0.9.2342.19200300.100.1.1', 'readableName': 'UID', 'identifier': [0, 9, 2342, 19200300, 100, 1, 1] }

to https://github.com/bcgit/pc-dart/blob/master/lib/asn1/object_identifiers.dart , fixes the issue.

What you can do untill the lib is updated is adding: pointycastle: git: url: https://github.com/TMSantos/pc-dart.git

to your dependencies (I forked and fixed) and override pointycastle versions:

dependency_overrides: pointycastle: git: url: https://github.com/TMSantos/pc-dart.git

TMSantos commented 2 years ago

Example pem generated: (UID is present) Screenshot 2021-10-26 at 10 45 27