2020-09-18 18:01:16 -04:00
|
|
|
- General/common
|
2020-09-27 03:23:58 -04:00
|
|
|
-- HALF-DONE: Locking?
|
|
|
|
-- DONE: Constants for common file dests
|
|
|
|
-- DONE: Func to write to dest, backing up dest if exists first
|
|
|
|
-- DONE: Test ssh config (sshd -t) and rollback if fail
|
|
|
|
-- When completely done, go.mod
|
2020-09-18 18:01:16 -04:00
|
|
|
|
|
|
|
- Key generation
|
|
|
|
-- DONE: Generate priv/pubkeys
|
2020-09-27 03:23:58 -04:00
|
|
|
-- DONE: Build key structure
|
2020-09-18 18:01:16 -04:00
|
|
|
-- write out base64 with headers to files
|
|
|
|
|
|
|
|
- SSH Moduli
|
2020-09-27 03:23:58 -04:00
|
|
|
-- NOT NEEDED?: Do DH param gen in goroutine so we can do other things while it spawns and runs
|
|
|
|
--- Check if haveged is running. If not and installed, start it.
|
|
|
|
--- Generate moduli
|
|
|
|
-- DONE: Render to /etc/ssh/moduli format
|
|
|
|
--- DONE: custom moduli marshaler/unmarshaler? (e.g. https://stackoverflow.com/a/50211222)
|
2020-09-18 18:01:16 -04:00
|
|
|
-- Write to dest
|
|
|
|
|
|
|
|
- Config
|
|
|
|
-- Need to merge in changes
|
2020-09-27 03:23:58 -04:00
|
|
|
-- Track options in struct?
|
|
|
|
--- add subtype structs
|