Skip to content

jamesmartinpp/eyc-test-apps

Repository files navigation

eyc-test-apps

Run the test applications

> cd echo-app2 
> mvn spring-boot:run -s ../settings.xml

> cd echo-app1
> mvn spring-boot:run -s ../settings.xml

>  curl -k -X POST -d "this is a simple test whatever, whatever" -H 'Content-Type: text/plain' https://localhost:8443/sample-app/echo

As an alternative to running the upstream echo-app1 you can run the unit test that does more or less the same thing as the app.

> cd echo-app1
> mvn test -s ../settings.xml

Collecting the tcpdump data

While your services are running start the tcpdump program and attach to the downstream application.ssl.port:

> sudo tcpdump -i lo0 port 8443 -w application2.dump

Enable decryption of SSL data

To find which PID to attach to run this command:

> java -jar ./extract-tls-secrets-4.0.0.jar list

Next run the same jar attaching to the downstream application pid:

> java -jar ./extract-tls-secrets-4.0.0.jar <pid> /tmp/secrets.log

The file secrets.log will be used in WireShark to view the tcpdump data.

View the tcpdump data in WireShark

Open the tcpdump file application2.dump in WireShark.

Setup the TLS decryption keys

Go to Preferences -> Protocols -> TLS alt text

Enhance your calm

After sending multiple requests you should see some failures and should be able to see the GOAWAY frame in the tcpdump with the ENHANCE_YOUR_CALM error.

alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages