We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5121385 commit 399b55fCopy full SHA for 399b55f
docs/advanced/server.md
@@ -141,7 +141,7 @@ The `tlsConfiguration` parameter controls whether TLS (SSL) is enabled on the se
141
// Enable TLS.
142
app.http.server.configuration.tlsConfiguration = .makeServerConfiguration(
143
certificateChain: try NIOSSLCertificate.fromPEMFile("/path/to/cert.pem").map { .certificate($0) },
144
- privateKey: .file("/path/to/key.pem")
+ privateKey: try NIOSSLPrivateKey(file: "/path/to/key.pem", format: .pem))
145
)
146
```
147
0 commit comments