Does the OpenSSL req
command have a OpenSSL configuration file equivalent to the ca
command's new_certs_dir
option? I'd like to establish a default directory for all Certificate Signing Requests ("CSRs") that are created using the req
command.
1 Answer
Such functionality is not there - and it is not needed: contrary to ca
the req
command creates exactly the files as given on the command line. So the easiest way is to use absolute path with req
and creating a wrapper script around it which sets the directory part for these absolute path based on your preference.
openssl req
either outputs to the given file name or to stdout. If one does not provide an absolute file name it is relativ to the current working directory whereopenssl req
is executed - similar to how other programs handle file names.ca
thereq
command creates exactly the files you gave on the command line so such functionality is not needed. I also don't understand why you cannot remember the directory but you can remember the name of the file. Anyway, just use an absolute path for these files or create a wrapper script around it where you hard code the path you want.