Skip to content

Support other signature and hash types #95

Closed

Description

@tetsuo-cpp

We have some hardcoded assumptions that we're using ECDSA keys with SHA256 hashes to generate signatures. Fulcio supports other signing and hashing algorithms so we should allow them too. For example, the staging instance is currently using an RSA CTFE key for signing.

Activity

  1. added
    enhancement
    on May 25, 2022
  2. self-assigned this
    on May 25, 2022
  3. woodruffw commented on May 25, 2022

    @woodruffw
    Member

    Fulcio supports other signing and hashing algorithms so we should allow them too.

    Yep. I'll double-check this, but I think the parameters we specifically need to support are:

    • RSA (>= 2048-bit only) + SHA256
    • ECDSA + SHA256

    It might make sense to support other hash algorithms as well, but I believe Fulcio only uses SHA256 at the moment.

  4. tetsuo-cpp commented on May 25, 2022

    @tetsuo-cpp
    ContributorAuthor

    Fulcio supports other signing and hashing algorithms so we should allow them too.

    Yep. I'll double-check this, but I think the parameters we specifically need to support are:

    • RSA (>= 2048-bit only) + SHA256
    • ECDSA + SHA256

    It might make sense to support other hash algorithms as well, but I believe Fulcio only uses SHA256 at the moment.

    You're probably right. I was just looking at the IETF spec and saw that the enumerations have lots of different values, but I didn't check that Fulcio supports them all.

  5. woodruffw commented on Jun 1, 2022

    @woodruffw
    Member

    Let's prioritize this after embedded SCT support (#30); that PR will probably be over-restrictive, which is fine for now.

  6. tetsuo-cpp commented on Jun 3, 2022

    @tetsuo-cpp
    ContributorAuthor

    @woodruffw Sorry, I linked this issue to #84. From your comment, sounds like there's still more to do here.

    I can take a look at it tomorrow. What did you have in mind?

  7. woodruffw commented on Jun 3, 2022

    @woodruffw
    Member

    No problem. Yeah, I think the only thing left to do here is to relax some of the checks in #84. But they're not currently impacting any active instances (that we know of), so I think we can hold off here until the cryptography release lands.

  8. woodruffw commented on Oct 26, 2022

    @woodruffw
    Member

    I think this is now done, at least for the CTFE keys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions