netty/netty — pull request #2725 by schulzp (2014-08-02 10:47:22+00:00)
Title: Added private key decryption to JDK SSL server context.

**Motivation:**

Currently it is *not possible* to load an *encrypted private key* when
creating a JDK based SSL server context, see #2718.

**Modifications:**

Added `io.netty.handler.ssl.util.KeySpecGenerator` which creates which
handles key spec generation for (encrypted) private keys.

Modified `io.netty.handler.ssl.JdkSslServerContext` so it uses
KeySpecGenerator.

Added tests for creating a SSL server context based on a (encrypted)
private key.

**Result:**

It is now possible to create a JDK based SSL server context with an
encrypted (password protected) private key.