OpenSSL with Java

后端 未结 6 1005
栀梦
栀梦 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:26

    Best solution: Use Java's built-in security for simple tasks or use BouncyCastle for more advanced ones.

    If you HAVE TO use OpenSSL from Java you have 2 choices:

    1. Call openssl as a process from Java.
    2. Make a JNI layer to OpenSSL, but that seems like a complete waste of time to me. None of those are really good ways of doing it.

提交回复
热议问题