akka / akka/akka-http

Make binding HTTPS servers even simpler via SSL-Config

Open
#55 12 comments 0 reactions 0 assignees View on GitHub
1 - triaged
Dominant language
Scala
Stars
1.4k
Forks
584
Avg merge
14h 33m
Merged PRs (30d)
24

Description

**Issue by [ktoso](https://github.com/ktoso)**
_Friday Apr 22, 2016 at 07:54 GMT_
_Originally opened as https://github.com/akka/akka/issues/20381_

---

Something like this for inspiration:

``` scala
implicit val system = ActorSystem()
implicit val mat = ActorMaterializer()
implicit val dispatcher = system.dispatcher

val sslConfig = AkkaSSLConfig().mapSettings { s =>
// TODO implement this: s.withServerKey
s
}

val https: HttpsConnectionContext = Http().createServerHttpsContext(sslConfig)

val routes: Route =
get {
complete("Hello world!")
}

// bind to default port for HTTPS (433):
Http().bindAndHandle(routes, "127.0.0.1", connectionContext = https)
```

Contributor guide

Open the contributing guide

Research direction

Start with the Scala entry points named in the issue: AkkaSSLConfig, createServerHttpsContext, and bindAndHandle. Review how the proposed SSL-Config flow should supply server settings, then verify that the example can bind an HTTPS server through the connection context shown.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
backend, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.