Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truncate name to 64 characters #8

Closed
wants to merge 1 commit into from

Conversation

toddself
Copy link

Use last 64 characters for significant bits, as our use-case is paths, and
they're more specific as they get longer...

Use last 64 characters for significant bits, as our use-case is paths, and
they're more specific as they get longer...
@davewasmer
Copy link
Owner

Rather than truncating, I'd prefer to simply throw. devcert is designed to be a low-level library, and I don't think we necessarily want to assume that a name longer than 64 characters should simply be truncated. If the consuming library / framework / tool wants to truncate, it can do that.

I appreciate the issue and PR though! Wasn't aware of that restriction in OpenSSL. A PR for throwing would be more than welcome!

@davewasmer davewasmer closed this Mar 30, 2018
alias-mac pushed a commit to alias-mac/devcert that referenced this pull request Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants