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

README: Force use of named curves in example #95

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

sethterashima
Copy link
Collaborator

MacOS uses LibreSSL for the OpenSSL command, and LibreSSL defaults to using explicit curve parameters rather than named curves when encoding private keys with openssl req .... But the Golang x509 library does not support explicit curve parameters, causing tesla-http-proxy to fail with "x509: invalid ECDSA parameters".

This commit fixes the problem by adding an option to the openssl command in the README that forces LibreSSL to use named curves.

Description

Please include a summary of the changes and the related issue.

Fixes #83

Type of change

Please select all options that apply to this change:

  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Bug fix (non-breaking change which fixes an issue)
  • Documentation update

Checklist:

Confirm you have completed the following steps:

  • My code follows the style of this project.
  • I have performed a self-review of my code.
  • I have made corresponding updates to the documentation.
  • I have added/updated unit tests to cover my changes.

MacOS uses LibreSSL for the OpenSSL command, and LibreSSL defaults to
using explicit curve parameters rather than named curves when encoding
private keys with `openssl req ...`. But the Golang x509 library does
not support explicit curve parameters, causing `tesla-http-proxy` to
fail with "x509: invalid ECDSA parameters".

This commit fixes the problem by adding an option to the openssl command
in the README that forces LibreSSL to use named curves.
@sethterashima sethterashima merged commit 12678f4 into teslamotors:main Dec 8, 2023
1 check passed
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.

HTTP Proxy - "Server stopped: x509: invalid ECDSA parameters"
3 participants