[server] Add support for both RSA and Ed25519 embedded self-signed certificates.
This commit is contained in:
parent
862972d3a8
commit
62e2598a8d
9 changed files with 186 additions and 55 deletions
|
@ -656,6 +656,8 @@ func main_0 () (error) {
|
|||
var _http3AltSvc string
|
||||
var _tlsPrivate string
|
||||
var _tlsPublic string
|
||||
var _tlsEmbeddedRsa bool
|
||||
var _tlsEmbeddedEd bool
|
||||
var _archivePath string
|
||||
var _archiveInmem bool
|
||||
var _archiveMmap bool
|
||||
|
@ -712,6 +714,8 @@ func main_0 () (error) {
|
|||
_tlsPrivate_0 := _flags.String ("tls-private", "", "")
|
||||
_tlsPublic_0 := _flags.String ("tls-public", "", "")
|
||||
_tlsBundle_0 := _flags.String ("tls-bundle", "", "")
|
||||
_tlsEmbeddedRsa_0 := _flags.Bool ("tls-self-rsa", false, "")
|
||||
_tlsEmbeddedEd_0 := _flags.Bool ("tls-self-ed25519", false, "")
|
||||
_processes_0 := _flags.Uint ("processes", 0, "")
|
||||
_threads_0 := _flags.Uint ("threads", 0, "")
|
||||
_slave_0 := _flags.Uint ("slave", 0, "")
|
||||
|
@ -779,10 +783,15 @@ func main_0 () (error) {
|
|||
_tlsPrivate = *_tlsPrivate_0
|
||||
_tlsPublic = *_tlsPublic_0
|
||||
}
|
||||
_tlsEmbeddedRsa = *_tlsEmbeddedRsa_0
|
||||
_tlsEmbeddedEd = *_tlsEmbeddedEd_0
|
||||
if ((_tlsPrivate != "") && (_tlsPublic == "")) || ((_tlsPublic != "") && (_tlsPrivate == "")) {
|
||||
AbortError (nil, "[6e5b42e4] TLS private/public must be specified together!")
|
||||
}
|
||||
if ((_tlsPrivate != "") || (_tlsPublic != "")) && ((_bindTls1 == "") && (_bindTls2 == "") && (_bindQuic == "")) {
|
||||
if (_tlsPrivate != "") && (_tlsEmbeddedRsa || _tlsEmbeddedEd) {
|
||||
AbortError (nil, "[3de098d3] TLS self-signed and TLS bundle or TLS private/public are mutually exclusive!")
|
||||
}
|
||||
if ((_tlsPrivate != "") || (_tlsPublic != "") || _tlsEmbeddedRsa || _tlsEmbeddedEd) && ((_bindTls1 == "") && (_bindTls2 == "") && (_bindQuic == "")) {
|
||||
AbortError (nil, "[4e31f251] TLS certificate specified, but TLS not enabled!")
|
||||
}
|
||||
|
||||
|
@ -976,6 +985,12 @@ func main_0 () (error) {
|
|||
if _tlsPublic != "" {
|
||||
_processArguments = append (_processArguments, "--tls-public", _tlsPublic)
|
||||
}
|
||||
if _tlsEmbeddedRsa {
|
||||
_processArguments = append (_processArguments, "--tls-self-rsa")
|
||||
}
|
||||
if _tlsEmbeddedEd {
|
||||
_processArguments = append (_processArguments, "--tls-self-ed25519")
|
||||
}
|
||||
if _timeoutDisabled {
|
||||
_processArguments = append (_processArguments, "--timeout-disable")
|
||||
}
|
||||
|
@ -1460,10 +1475,27 @@ func main_0 () (error) {
|
|||
}
|
||||
}
|
||||
if len (_tls1Config.Certificates) == 0 {
|
||||
if !_quiet {
|
||||
log.Printf ("[ii] [344ba198] [tls.....] no TLS certificate specified; using self-signed!\n")
|
||||
var _tlsPublic, _tlsPrivate []byte
|
||||
if _tlsEmbeddedRsa {
|
||||
if !_quiet {
|
||||
log.Printf ("[ii] [46ad23d6] [tls.....] using self-signed RSA certificate!\n")
|
||||
}
|
||||
_tlsPublic = DefaultTlsRsaCertificatePublic
|
||||
_tlsPrivate = DefaultTlsRsaCertificatePrivate
|
||||
} else if _tlsEmbeddedEd {
|
||||
if !_quiet {
|
||||
log.Printf ("[ii] [80c7d1b7] [tls.....] using self-signed Ed25519 certificate!\n")
|
||||
}
|
||||
_tlsPublic = DefaultTlsEd25519CertificatePublic
|
||||
_tlsPrivate = DefaultTlsEd25519CertificatePrivate
|
||||
} else {
|
||||
if !_quiet {
|
||||
log.Printf ("[ii] [344ba198] [tls.....] no TLS certificate specified; using self-signed RSA certificate!\n")
|
||||
}
|
||||
_tlsPublic = DefaultTlsRsaCertificatePublic
|
||||
_tlsPrivate = DefaultTlsRsaCertificatePrivate
|
||||
}
|
||||
if _certificate, _error := tls.X509KeyPair ([]byte (DefaultTlsCertificatePublic), []byte (DefaultTlsCertificatePrivate)); _error == nil {
|
||||
if _certificate, _error := tls.X509KeyPair (_tlsPublic, _tlsPrivate); _error == nil {
|
||||
_tls1Config.Certificates = append (_tls1Config.Certificates, _certificate)
|
||||
} else {
|
||||
AbortError (_error, "[98ba6d23] [tls.....] failed parsing TLS certificate!")
|
||||
|
|
|
@ -29,6 +29,8 @@
|
|||
--tls-bundle <path> (TLS certificate bundle)
|
||||
--tls-public <path> (TLS certificate public)
|
||||
--tls-private <path> (TLS certificate private)
|
||||
--tls-self-rsa (use self-signed RSA)
|
||||
--tls-self-ed25519 (use self-signed Ed25519)
|
||||
|
||||
--processes <count> (of slave processes)
|
||||
--threads <count> (of threads per process)
|
||||
|
|
3
sources/lib/server/files/tls/server-ed25519-private.pem
Normal file
3
sources/lib/server/files/tls/server-ed25519-private.pem
Normal file
|
@ -0,0 +1,3 @@
|
|||
-----BEGIN PRIVATE KEY-----
|
||||
MC4CAQAwBQYDK2VwBCIEIMQKB9u2kZZ9VbGnZddN3yhq865Q/IU014UjTY5uPfiE
|
||||
-----END PRIVATE KEY-----
|
43
sources/lib/server/files/tls/server-ed25519-public.pem
Normal file
43
sources/lib/server/files/tls/server-ed25519-public.pem
Normal file
|
@ -0,0 +1,43 @@
|
|||
-----BEGIN CERTIFICATE-----
|
||||
MIIFITCCBNOgAwIBAgIBAjAFBgMrZXAwFjEUMBIGA1UEAxMLa2F3aXBpa28tY2Ew
|
||||
HhcNMjAwMTAxMDAwMDAwWhcNNDAxMjMxMjM1OTU5WjAaMRgwFgYDVQQDEw9rYXdp
|
||||
cGlrby1zZXJ2ZXIwKjAFBgMrZXADIQDxM9xzekdhsBs7Ahc0Fw/I2diBKsRxmkUf
|
||||
xyqvpwmbtqOCBEAwggQ8MAwGA1UdEwEB/wQCMAAwggPFBgNVHREEggO8MIIDuIII
|
||||
a2F3aXBpa2+CCioua2F3aXBpa2+CCWxvY2FsaG9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z
|
||||
dDAJgQdleGFtcGxlMA2BC2V4YW1wbGUuY29tMA2BC2V4YW1wbGUubmV0MA2BC2V4
|
||||
YW1wbGUub3JnMAmBB2ludmFsaWQwHQYDVR0OBBYEFNBVyhfrfaWPG/bQaHw0BL/V
|
||||
Viq3MAUGAytlcANBAJQ1/xxifLV25+92zUki6efxjrDzKQ50WmK7vjMcFTrvPSg0
|
||||
K43TIK6/bV2YWAiAOTCdBjVYGhlF6tiPEeuingo=
|
||||
-----END CERTIFICATE-----
|
|
@ -1,28 +0,0 @@
|
|||
-----BEGIN PRIVATE KEY-----
|
||||
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC+jojvRd7zso5q
|
||||
PvriGVYRwBZZoScGbMyAm06ICAV8boHe8y5ITzhGjtrS6pXCQeqFg6sTrqMUGjya
|
||||
g8E4EAGi9WkO00aNYYT7EWp/rT0wS5aWgM27h3rCAGN2Nxd9lnophyx+xy1yhF55
|
||||
iWOC6PH6W9GA5EpLidac47Jjc73AlEzFrchORF9VTCVCBqakopwiTeJd1Gp0A63C
|
||||
zpM7dVPBVnWmgMNLJhwpNbppChCaw4IMSBCH6nJhAlJUgSqIU/fZyOrjeikeid86
|
||||
nKQCIvZ7syJFgm6vkTnEfZmZP1J6uw9wAIygK7UOIc8loa/F+Xr3eB/imBfqsNs9
|
||||
ZM0mpamrAgMBAAECggEAORjSVQeVj2XAIHuwhtDapkTtLXwJCnbNK/fdJwtoQWmH
|
||||
RnuNMaNzFEk3rh0WNHe1wr26JBKe0KYv5Ih3+8loBCEOkp+hszk2NFh6lbkd7Xuo
|
||||
qn37pyYoFTsykjhdtIbDIfBb17zslDSvbjFJfO85mi+q7bj5vfqWMLpVOFF02N/S
|
||||
SmASAzAYTAOE+wheMuTWkm8r3PXh8WhJViWLp/9l6gyLT0mOazxaVayOWyJ/pg1w
|
||||
qPZiNOavTbNyP7jzUysA4LX9CdBQx3k48IQm0c59Zu49Rl7H6ZT9Vp2CSk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6S5YGr88VAz0y9zAGD/2wGq9R1hUSDw0OfMgEm9GoSz6FpXKKBtl
|
||||
M01bP11akztK8sWChdels4OXOsPQ1SdF2XE4od82cm6lA8IgE1hY
|
||||
-----END CERTIFICATE-----
|
28
sources/lib/server/files/tls/server-rsa-private.pem
Normal file
28
sources/lib/server/files/tls/server-rsa-private.pem
Normal file
|
@ -0,0 +1,28 @@
|
|||
-----BEGIN PRIVATE KEY-----
|
||||
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDKxWyu2s++wp9n
|
||||
YYwqTBOehkMzf2oY0sm1lH3yEQZIKK7ik2yjYPsOLyXT1mrzuOb2DE4GP8CighKY
|
||||
j2Mpk3tKj+iz4JQq5BZtGBNrtS8qC/o/NphQzGEZ19XMF1x7lcqkTmbhpfcK9rVl
|
||||
RbKN/Vsx/nuMJTL654fHRLxpA7b9rgosbykyse3lB2drWTfrjauKXno89fnEfv70
|
||||
IPLYL0hkgO+IE0CONUGR60RBD/GuSCKQRHECmDCUvCTLnJkKtiqYOkIDXPnhZrxl
|
||||
5GCUXDI4Fh0RCOpkzr30ABg6kXFFzWAVJg0JkkbYDLgOZcsQLXUCFhewbFKa2/CN
|
||||
JPPftwVjAgMBAAECggEBALCoafS4y++tTgValiwvlZQx8xBFvKCd3IBnO4cO0AND
|
||||
9oGN4UNB9dg4uWMi1pE6EXZh6ARHvMOYQS1LFyCczfh7AkjcqxnnF6a6KAlZlBq0
|
||||
zrQOE4upVBuY0Dp8S+Wb7i1R5Q5Icr/JiuYNX++WwMIArZC+w/iWiNPSDbgMNXwy
|
||||
fAepv8XhR5AMpvzZ/gnQg9C5HF+oyxSitrDcO8jJKezI7iSGj/LhMAdiWQKBxpVp
|
||||
MuXD0ZDFhZR0LCkgi4SvcGorXS55wo2n1VUxM+5630N0cvyv8Fx3Li9cms5y6FGq
|
||||
gELeRAlxABGwrWy/GIKhgyi8tF/Uef7Hix8dqk1eankCgYEA1jEXEDYjPijugqRF
|
||||
5SQnwYCEeI4K6GD4yHMxPTyrf70m2KyABPZnHd3DOQ19cH1fsdpeCMWhuvZFkMdH
|
||||
rJ9pVugKWIPZ8F3VXZMZ0/NGDDeC35866esyNEMaxeppiCN6bDHHIXKEt6DDpBll
|
||||
wn5WKgtTCBbzbdw7iHKRDEUDABcCgYEA8lmpftCxsBwii/NozbvFB+qGZ6w2wJHq
|
||||
v0XzUySh5Z40vcHyvYH7oovw+8BqoItEU2R4XoYl6rC52zcRx1tP0Sgg/lxqHgCK
|
||||
vBdSExJEUTRpTGfcQ5MjfufP1LWYF2JhyzGBC5z8DsMjlMOxETOsAAmSPjaL+yJz
|
||||
lIB+0QQKyJUCgYEAvY4+OfOfZvB0fBuDW9GOeXoSQlp6nsLLCSKgrfAWWnr8eP7Y
|
||||
YQvroAvVLJWasMXTvaNiWuMESWCPmhwyezuszuOV3FX7tvRj0mdPkTqXgFJUOTFC
|
||||
wyeJi6TjecoFUR0Mx9mZwCkH+TaGTaDIZMLH4HebKOqezlf8O7ogUbp1eEsCgYB0
|
||||
Dx5NnfHKLd8ZeIrzI337CYQuN9nMpNRvnzck1QE3LmmBilUODiaMtEnGtmIZ2jfx
|
||||
W8cNNV8JInMPGTNJbmAuAPKz/VvQXGAULXLfsTrITLo0nfRs5BT2nFr6ObDJWhMN
|
||||
NPrgreBDzY3Hm2O7oiw3pF3Fr2ef7+K79kFFJZNodQKBgH5ZOibAlJkpEqvkHO88
|
||||
RY5ITEzkstaKW8ktkNjkqbCk3EVjl+nfKcEexKpbDPMfPEfowG8zfNTDd9AMoCV2
|
||||
zzCvHJThxc+W9dPLfEgjE87Ci2lcJx5+hjGpgTbgAX/pglc3gnrdKRoILXdQd0Ar
|
||||
oDim4HdjGEK2jM6YMvcRnjFp
|
||||
-----END PRIVATE KEY-----
|
63
sources/lib/server/files/tls/server-rsa-public.pem
Normal file
63
sources/lib/server/files/tls/server-rsa-public.pem
Normal file
|
@ -0,0 +1,63 @@
|
|||
-----BEGIN CERTI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zItjs
|
||||
99lteqQ9c1cqyxGY8X0AEwIDAQABo4IBHDCCARgwDwYDVR0TAQH/BAUwAwEB/zCB
|
||||
5QYDVR0eAQH/BIHaMIHXoIHUMAqHCH8AAAD/AAAAMAqCCGthd2lwaWtvMAuCCWxv
|
||||
Y2FsaG9zdDAGggR0ZXN0MAmCB2V4YW1wbGUwDYILZXhhbXBsZS5jb20wDYILZXhh
|
||||
bXBsZS5uZXQwDYILZXhhbXBsZS5vcmcwCYIHaW52YWxpZDAKgQhrYXdpcGlrbzAL
|
||||
gQlsb2NhbGhvc3QwBoEEdGVzdDAJgQdleGFtcGxlMA2BC2V4YW1wbGUuY29tMA2B
|
||||
C2V4YW1wbGUubmV0MA2BC2V4YW1wbGUub3JnMAmBB2ludmFsaWQwHQYDVR0OBBYE
|
||||
FIYvnZN/WTP9CLtCmE8NoDvZ2Fs0MA0GCSqGSIb3DQEBCwUAA4IBAQCD9Rq/CTOZ
|
||||
9v0XoEq208y1akWLG0l3YDvor+ee9Ier8GcQKuaX/WaOLceqPuMFpi2hmlblmkw+
|
||||
X11IVefWGcO9TCO0gPRpzXXpx/ZMlbgvOoM/WE3PtrVfPLxNn91LeENPUj+jrCNo
|
||||
594Prq+/FaBKs/xOfzgLR1wVEHt2lyXsvQbJ38qkAkIlQdjpolmDopNkFnlglM5Y
|
||||
cMO/3ywYpI/X5+ge5TpOlDf4iwo6dm8uxpY/12gwlSpf/B5KuDqaeae6oHTB7Gn4
|
||||
Q8TCLS2Awha2lFFcQEoes14Lri0ARFygav0X1aP4P2vPM5ioA8vW2vgCPHLOccP8
|
||||
vOyisHCQ3eIe
|
||||
-----END CERTIFICATE-----
|
|
@ -8,9 +8,16 @@ import _ "embed"
|
|||
|
||||
|
||||
|
||||
//go:embed files/tls/server-public.pem
|
||||
var DefaultTlsCertificatePublic []byte
|
||||
//go:embed files/tls/server-rsa-public.pem
|
||||
var DefaultTlsRsaCertificatePublic []byte
|
||||
|
||||
//go:embed files/tls/server-private.pem
|
||||
var DefaultTlsCertificatePrivate []byte
|
||||
//go:embed files/tls/server-rsa-private.pem
|
||||
var DefaultTlsRsaCertificatePrivate []byte
|
||||
|
||||
|
||||
//go:embed files/tls/server-ed25519-public.pem
|
||||
var DefaultTlsEd25519CertificatePublic []byte
|
||||
|
||||
//go:embed files/tls/server-ed25519-private.pem
|
||||
var DefaultTlsEd25519CertificatePrivate []byte
|
||||
|
||||
|
|
Loading…
Reference in a new issue