pc-dart icon indicating copy to clipboard operation
pc-dart copied to clipboard

Trouble while trying to create a Ecc CSR

Open ranbeuer opened this issue 3 years ago • 3 comments

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?

ranbeuer avatar Oct 17 '20 01:10 ranbeuer

same problem, any update?

TMSantos avatar Oct 26 '21 09:10 TMSantos

@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 avatar Oct 26 '21 09:10 TMSantos

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

TMSantos avatar Oct 26 '21 09:10 TMSantos