support two way ssl authentication

Description

add support to two way ssl authentication. see https://github.com/SoftInstigate/restheart/issues/189

guideline: in Boostrapper class the sslContext is initialized

1 sslContext.init(kmf.getKeyManagers(), null, null);

we should add initialize the TrustManagerFactory and pass TrusManagers to sslContext.init()

1 2 3 4 TrustManagerFactory tmf; .... sslContext.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null);

Environment

None

Status

Assignee

Andrea Di Cesare

Reporter

Andrea Di Cesare

Labels

None

Fix versions

Affects versions

3.1.1
3.0.1

Priority

Major
Configure