jawi / ssl-socket-demo Goto Github PK
View Code? Open in Web Editor NEWA small demo project showing how to set up 2-way SSL communication using raw sockets, Java and OpenSSL.
A small demo project showing how to set up 2-way SSL communication using raw sockets, Java and OpenSSL.
Hi
I test your project and in your sslcert/create_root_cert.sh script add command :
=> mkdir private
Or generation of cert fail ! :)
And in sslcert/sign_request.sh an "mkdir certs"
I just try your demo and when I run Steps to run the server . I got error as
Exception in thread "main" java.io.FileNotFoundException: server.jks (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:146) at java.io.FileInputStream.<init>(FileInputStream.java:101) at nl.lxtreme.ssl.socket.SslUtil.createKeyManagers(SslUtil.java:44) at nl.lxtreme.ssl.socket.SslUtil.createKeyManagers(SslUtil.java:36) at nl.lxtreme.ssl.socket.server.SslServer.getKeyManagers(SslServer.java:33) at nl.lxtreme.ssl.socket.SslUtil.createSSLContext(SslUtil.java:60) at nl.lxtreme.ssl.socket.SslUtil.createSSLServerSocket(SslUtil.java:65) at nl.lxtreme.ssl.socket.server.SslServer.createSSLSocket(SslServer.java:75) at nl.lxtreme.ssl.socket.server.SslServer.run(SslServer.java:47) at nl.lxtreme.ssl.socket.server.SslServer.main(SslServer.java:28)
.
I am using java version "1.7.0_151"
OpenJDK Runtime Environment (IcedTea 2.6.11) (7u151-2.6.11-0ubuntu1.14.04.1)
OpenJDK Client VM (build 24.151-b01, mixed mode, sharing)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.