tech5usa / TLSential

A server for providing short-lived TLS certificates to all services within a firewall restricted network.
GNU General Public License v3.0
15 stars 2 forks source link

Move app logic out of model.Certificate #25

Open d1str0 opened 4 years ago

d1str0 commented 4 years ago

NewCertificate has a bit of app logic in it that should be moved to it's service. For example, DefaultRenewAt and the package global errors, as well as any of the code that triggers those errors.