ModioAB / caramel

Caramel is a CA Registry Manager
GNU Affero General Public License v3.0
16 stars 5 forks source link

Bug fixes for argument handling #76

Closed teoti001 closed 3 years ago

teoti001 commented 3 years ago

Bugfix 1: Bugfix to be able to use autosign and tools using only the commandline. If an argument is passed on the commandline it should trumph all other. So in caramel.config.bootstrap we can safely overwrite the env-var CARAMEL_DB_URL with what was passed on the commandline if there where any.

Bugfix 2: Bugfix since argparse saves hyphend argument flags with underscores instead. example: --ca-cert becomes the property .ca_cert

Also included a "correction", to generate ca-cert/key pairs no interaction with the server is needed, so bootstrapping it is not necessary.