I have to use OpenSSL in a Java web project and I don't know anything about 'OpenSSL'.
How can I integrate OpenSSL with my project? is there any good fundamental tutorials to learn this?
解决方案
First of all: what do you need the library for?
If you are going to use simple cryptographic functions, then use the Java SE Security components deployed with the JDK.
If you need more advanced functions (such as some digital signing formats, etc), use a cryptographic library (BouncyCastle is one of the the most popular)
But, if what you need is to open SSL connections from Java code, and handle certificates authentication, etc, you won't need any of these:
If you are working on a Java EE Container, your container can validate incoming SSL requests: it's just a matter of configuration
Also, if you need to connect to a SSL port, the JDK presents some basic classes for doing so (see this example). Note that in this case, you'll need to set some system properties on your java command.
Like these properties:
-Djavax.net.ssl.keyStore=keystore_path
-Djavax.net.ssl.keyStorePassword=password
-Djavax.net.ssl.trustStore=truststore_path
-Djavax.net.ssl.trustStorePassword=trustword