jsha / minica

minica is a small, simple CA intended for use in situations where the CA operator also operates each host where a certificate will be used.
MIT License
3.02k stars 246 forks source link

Use well-known locations for root certificate storage #65

Open sdavids opened 1 year ago

sdavids commented 1 year ago

If the _XDG_DATAHOME environment variable is set then the root certificate should be generated in ${XDG_DATA_HOME}/minica.

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

On macOS it should go into ~/Library/Application\ Support/com.jsha.minica (_XDG_DATAHOME takes preference though).

https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html