Giter Site home page Giter Site logo

akka-http-test's Introduction

akka-http-test

Sample classes that implement a HTTP(S) client / server

To create a self-signed certificate for the HTTPS Server, do the following:

openssl genrsa -des3 -out server.key 2048
openssl rsa -in server.key -out server.key
openssl req -sha256 -new -key server.key -out server.csr -subj '/CN=localhost'
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

Replace 'localhost' with your domain. To combine the two into a .pem file:

cat server.crt server.key > cert.pem

To create a KeyStore in PKCS12 Format, do:

openssl pkcs12 -export -in cert.pem -out mykeystore.pkcs12  -name akka-http-test -noiter -nomaciter

HttpsServer and ConnectionLevelHttpsClient

HttpsServer and ConnectionLevelHttpsClient demonstrate how to write a simple HTTPS server and client. HttpsServer uses a self-signed certificate and ConnectionLevelHttpsClient ignores the certificate and disables hostname verification.

Warning: do not do this with production code! But this might be useful e.g. for writung a a test server that provides a REST interface used for testing.

akka-http-test's People

Contributors

mthaler avatar

Watchers

 avatar

akka-http-test's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.