Closed apt-007 closed 1 year ago
config.toml
demo tls From Cloudflare
cert = """-----BEGIN CERTIFICATE----- MIIEmjCCA4KgAwIBAgIURGTAz8VzsnKdIS43Sy7lDTX2jC0wDQYJKoZIhvcNAQEL BQAwgYsxCzAJBgNVBAYTAlVTMRkwFwYDVQQKExBDbG91ZEZsYXJlLCBJbmMuMTQw MgYDVQQLEytDbG91ZEZsYXJlIE9yaWdpbiBTU0wgQ2VydGlmaWNhdGUgQXV0aG9y aXR5MRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRMwEQYDVQQIEwpDYWxpZm9ybmlh MB4XDTIzMDIyNDE0MzEwMFoXDTM4MDIyMDE0MzEwMFowYjEZMBcGA1UEChMQQ2xv dWRGbGFyZSwgSW5jLjEdMBsGA1UECxMUQ2xvdWRGbGFyZSBPcmlnaW4gQ0ExJjAk BgNVBAMTHUNsb3VkRmxhcmUgT3JpZ2luIENlcnRpZmljYXRlMIIBIjANBgkqhkiG 9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsn/4hA0TKAy5hU5tQUyAxlBTK0hxPRfeG17f ho4Hzk6/TBeZxGCclMfm6PIMHz3k8xpWE1CpS65a/M6nj36dhUUPHvXnwdHo07pX uiX1gKFWEC3tzNU2OfQvsPkuPGP5L2Pv6ABsPy9SUFFUEyN+jmf74hCmHC+s6xjc ydB9hVPqFSSv6IsloflWwNCRzNuznghBwXp2o6MuMuEJKFLumT78xVYiMPpxxCQo orm/EBdiyg3px4yi0qXrnCU3guERouR7arumOnLifZHqGrY5jihMQGawe+uFiJRg yAkMLnNHrmepn8o1Jek/dzyUO3WDOpaCloxXNDl//ECg5XoivwIDAQABo4IBHDCC ARgwDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcD ATAMBgNVHRMBAf8EAjAAMB0GA1UdDgQWBBQaz124udfzMoDNhgNPNDiILidf3jAf BgNVHSMEGDAWgBQk6FNXXXw0QIep65TbuuEWePwppDBABggrBg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tvmW/gy8 0cF6PWqJKovufflwNfQX6NeZvo6IdL1TyXRNsr889+gxilDCZg/zeK4Bt9c8Xzmp QWjgzbeR0NiYfZm7AGotxPE= -----END PRIVATE KEY----- """
Still encountering errors.
"ERROR freedit::config: enable https failed, please check config toml cert and key"
Contents of certificate file and private key file must be in PEM format.
cert = 'cert-path' key = 'key-path'
Thank you. The certificate has been installed.
config.toml
demo tls From Cloudflare
Still encountering errors.
"ERROR freedit::config: enable https failed, please check config toml cert and key"