mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
fix hostname vs server id delineation
This commit is contained in:
@@ -25,7 +25,7 @@ import Constants
|
|||||||
renewSslLeafCert :: AgentCtx -> IO ()
|
renewSslLeafCert :: AgentCtx -> IO ()
|
||||||
renewSslLeafCert ctx = do
|
renewSslLeafCert ctx = do
|
||||||
let base = appFilesystemBase . appSettings $ ctx
|
let base = appFilesystemBase . appSettings $ ctx
|
||||||
hn <- injectFilesystemBase base getStart9AgentHostname
|
hn <- (<> ".local") <$> injectFilesystemBase base getStart9AgentHostname
|
||||||
tor <- injectFilesystemBase base getAgentHiddenServiceUrl
|
tor <- injectFilesystemBase base getAgentHiddenServiceUrl
|
||||||
putStr @Text "SSL Renewal Required? "
|
putStr @Text "SSL Renewal Required? "
|
||||||
needsRenew <- doesSslNeedRenew (toS $ entityCertPath hn `relativeTo` base)
|
needsRenew <- doesSslNeedRenew (toS $ entityCertPath hn `relativeTo` base)
|
||||||
|
|||||||
@@ -467,7 +467,7 @@ syncConvertEcdsaCerts = SyncOp "Convert Intermediate Cert to ECDSA P256" check m
|
|||||||
|
|
||||||
replaceDerivativeCerts :: (HasFilesystemBase sig m, Fused.Has (Error S9Error) sig m, MonadIO m) => m ()
|
replaceDerivativeCerts :: (HasFilesystemBase sig m, Fused.Has (Error S9Error) sig m, MonadIO m) => m ()
|
||||||
replaceDerivativeCerts = do
|
replaceDerivativeCerts = do
|
||||||
hn <- getStart9AgentHostname
|
hn <- (<> ".local") <$> getStart9AgentHostname
|
||||||
tor <- getAgentHiddenServiceUrl
|
tor <- getAgentHiddenServiceUrl
|
||||||
|
|
||||||
caKeyPath <- toS <$> getAbsoluteLocationFor rootCaKeyPath
|
caKeyPath <- toS <$> getAbsoluteLocationFor rootCaKeyPath
|
||||||
|
|||||||
Reference in New Issue
Block a user