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

make clean CN=<common_name> ignores the specification of the common name in the command line #59

Closed
tilman67 opened this issue Feb 2, 2024 · 2 comments · Fixed by #60
Assignees
Labels

Comments

@tilman67
Copy link

tilman67 commented Feb 2, 2024

Describe the bug

Just a minor issue, however: When certificates are created with the CN=<common_name> variable to override the default common name, then

make clean CN=<common_name>

assumes the default common name instead of <common_name>. As a consequence, the directories client_<common_name> and server_<common_name> are not deleted.

I already figured out myself that the problem is in common.mk lines 56 and 57:

clean:
	$(PYTHON) profile.py clean

The clean target is missing the --common-name '$(CN)' option which is present in other targets. After I added the option like

clean:
	$(PYTHON) profile.py clean --common-name '$(CN)'

everything worked fine.

Reproduction steps

  1. git clone https://github.com/rabbitmq/tls-gen tls-gen
  2. cd tls-gen/basic
  3. make CN="foobar"
  4. make clean CN="foobar"

Expected behavior

The following directories are deleted:

client_foobar
server_foobar

Additional context

No response

@tilman67 tilman67 added the bug label Feb 2, 2024
@michaelklishin
Copy link
Member

@tilman67 please submit a PR. Thank you.

@lukebakken lukebakken self-assigned this Feb 4, 2024
@lukebakken
Copy link
Collaborator

@tilman67 good catch! Please submit a PR as @michaelklishin asked. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants