OpenSSL with Java

后端 未结 6 1014
栀梦
栀梦 2021-02-02 10:06

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 tuto

6条回答
  •  难免孤独
    2021-02-02 10:51

    Apache Tomcat Native Library is the solution. https://github.com/apache/tomcat-native

    It uses OpenSSL for TLS/SSL capabilities. You can use it as standalone library (as I did) or connect your Tomcat. It is open source project with well documented Java code.

    Why tomcat native?

    JSSE is slow and hard to use. In my project to get best performance we've decided to find/write JNI wrapper for OpenSSL as possibility for upgrading certificates on-the-fly is a question mark and Key Stores are too complex.

    As Bouncy Castle Crypto APIs is written in Java you cannot expect best efficiency.

    Tomcat Native is a wrapper so you are limited only to capabilities of your OpenSSL version.

提交回复
热议问题