Skip to content

Running easyrsa from a symlink or PATH #499

@TinCanTech

Description

@TinCanTech

This issue is here to discuss how to simplify and resolve the problems related to:

  • where easyrsa is located verses
  • the current directory, where easyrsa was called.

When running easyrsa from the same directory as the location of the PKI, things generally work.

When easyrsa is not located in $PWD then things go wrong:

  • $EASYRSA is evaluated to the script directory not the working directory.

While it is a very simple fix, #475 changes this behavior by explicitly setting $EASYRSA to $PWD.

This is a binary choice; Either easyrsa is in $PWD or it is not.

  • If $0 points to $PWD then easyrsa is here. Normal functions resumed..
  • Otherwise, it is somewhere else. Good luck..

This seems to be a far simpler choice than the if/elif/else maze to be found in vars_setup(). If otherwise then simple measures can be put in place for that specific situation.

Comments welcome.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions