formats icon indicating copy to clipboard operation
formats copied to clipboard

Missing formats

Open tarcieri opened this issue 4 years ago • 16 comments

  • [x] PKCS#1: RSA Cryptography Standard
  • [x] PKCS#5: Password-based Encryption Standard
  • [x] #28
  • [x] PKCS#8: Private-Key Information Syntax Standard
  • [x] PKCS#10: Certification Request Standard
  • [x] #3
  • [x] SPKI: X.509 Subject Public Key Info
  • [x] X.509: Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile

Please post a comment to request additional formats

tarcieri avatar Sep 14 '21 13:09 tarcieri

#3 will also require a PKCS#7 implementation so I'll start work on that as well. I've created PKCS#7 support #28 to track.

jklong avatar Sep 15 '21 05:09 jklong

Do you want to stick to the big ones or are you also interested in things like the "TLS codec". It's not really a standard but it's being used quite a bit by now. I have a version here https://github.com/openmls/tls-codec/

franziskuskiefer avatar Sep 16 '21 07:09 franziskuskiefer

@franziskuskiefer if you so happen to be looking for another home for it I'd say that would be a great thing to have here

tarcieri avatar Sep 16 '21 12:09 tarcieri

The new ssh-key crate does not seem to support ssh-keys backed by security keys, which contain the sk suffix in the name. There is ecdsa_sk which uses [email protected] in the .pub file and ed25519_sk using [email protected] as the identifier. It would be great to have support for these newer key types too, but it is not clear to me if that is currently on the todo list.

jonasbb avatar Dec 30 '21 16:12 jonasbb

@jonasbb yes, it would be good to add support for those. Likewise it would be nice to have support for OpenSSH certificates.

I will try to get these items added to the TODO list in the README, or otherwise would merge a PR to add them.

tarcieri avatar Dec 30 '21 17:12 tarcieri

Do you think RFC3161 TimeStamp Protocol would be a good addition to the formats?

reference: https://www.rfc-editor.org/rfc/rfc3161

enri1196 avatar Jun 04 '23 09:06 enri1196

I think RFC3161 would be a good addition and have thought about implementing it before but had not gotten around to it. It's referenced in some new work, for example, draft-birkholz-rats-epoch-markers.

carl-wallace avatar Jun 04 '23 12:06 carl-wallace

I'd like to help, can I just open a PR once I've got some basic implementation of the structures? Maybe a new folder under formats/tsp?

enri1196 avatar Jun 04 '23 13:06 enri1196

We'd need a crate name we actually control, although you can use that name temporarily until we pick one we do control

tarcieri avatar Jun 04 '23 14:06 tarcieri

I would potentially be interested in contributing an implementation of RFC5544. Is that something the project would benefit from?

leotaku avatar Nov 13 '23 09:11 leotaku

Hey @leotaku I've actually created an issue for this format and I have most of the work done locally, the blocking issue for me is that I get an indefinite length error which seems to come from a BER/DER mixed encoding. #1198 I was waiting to get some feedback, but I could definitely open a PR for you to test for your self, maybe you can spot something i missed.

enri1196 avatar Nov 13 '23 13:11 enri1196

@enri1196 That sounds great. If you open a PR or direct me to your fork I'd love to take a look.

leotaku avatar Nov 13 '23 15:11 leotaku

@leotaku check out PR #1258 hopefully we can get this to work

enri1196 avatar Nov 16 '23 17:11 enri1196

PKCS#15 ISO/IEC 7816-15 Version 2016 with amd. 2018 https://github.com/monai/node-passport/blob/master/lib/pkcs15/cryptographic_information_framework.asn1

dishmaker avatar Dec 08 '23 10:12 dishmaker