kea-stunnel.conf 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. ; This file contains an example stunnel TLS client configuration which
  2. ; enables secure transport for Kea RESTful API. An access to
  3. ; the service is protected by client's and server's certificate
  4. ; verification mechanism (as known as mutual authentication).
  5. ;
  6. ; Note that the setup below (and reused nginx or httpd2 setups)
  7. ; are provided as an example for testing purposes only. Always
  8. ; consider best known security measures to protect your production
  9. ; environment.
  10. ;
  11. ; Transport marked with ==> (vs -->) is secured against passive
  12. ; (i.e. eavesdropping) and active (i.e. man-in-the-middle) attacks
  13. ;
  14. ; kea-shell -- 127.0.0.1 port 8080 -->
  15. ; stunnel == 127.0.0.1 port 443 ==>
  16. ; nginx -- 127.0.0.1 port 8000 -->
  17. ; kea-agent
  18. ;
  19. ; stunnel configuration starts here.
  20. ; in the case you would like to follow what happens
  21. ;; foreground = yes
  22. ;; debug = 7
  23. ; kea service
  24. [kea]
  25. ; client (vs server) mode
  26. client = yes
  27. ; accept requests from the kea-shell tool
  28. accept = 127.0.0.1:8080
  29. ; forward requests to the https peer
  30. connect = 127.0.0.1:443
  31. ; client certificate
  32. cert = kea-client.crt
  33. ; client private key
  34. key = kea-client.key
  35. ; check server certificate
  36. verifyPeer = yes
  37. ; server certificate
  38. CAfile = kea-proxy.crt