You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change is made to support environments that require HTTPS. The
server can now run over HTTPS with either user-provided certs or
self-signed ones.
This is done through flags aligned with vLLM (`--ssl-certfile`, `--ssl-keyfile`).
Additionally `--self-signed-certs` has been provided for self-signed certs.
Signed-off-by: Bartosz Majsak <bartosz.majsak@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
5
+
you may not use this file except in compliance with the License.
6
+
You may obtain a copy of the License at
7
+
8
+
http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+
Unless required by applicable law or agreed to in writing, software
11
+
distributed under the License is distributed on an "AS IS" BASIS,
12
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+
See the License for the specific language governing permissions and
14
+
limitations under the License.
15
+
*/
16
+
17
+
package llmdinferencesim
18
+
19
+
import (
20
+
"crypto/rand"
21
+
"crypto/rsa"
22
+
"crypto/tls"
23
+
"crypto/x509"
24
+
"crypto/x509/pkix"
25
+
"encoding/pem"
26
+
"fmt"
27
+
"math/big"
28
+
"time"
29
+
30
+
"github.com/valyala/fasthttp"
31
+
)
32
+
33
+
// Based on: https://github.com/kubernetes-sigs/gateway-api-inference-extension/blob/8d01161ec48d6b49cd371f179551b35da46e6fd6/internal/tls/tls.go
// CreateSelfSignedTLSCertificate creates a self-signed cert the server can use to serve TLS.
114
+
// Original code: https://github.com/kubernetes-sigs/gateway-api-inference-extension/blob/8d01161ec48d6b49cd371f179551b35da46e6fd6/internal/tls/tls.go
0 commit comments