Does OpenSSL really need a path to openssl.conf?

后端 未结 3 2062
一整个雨季
一整个雨季 2021-02-07 10:47

I want to create a self-signed-certificate in PHP 5.x. with my own (alternative) openssl configuration which should be defined by my PHP code. The PHP script will run on differe

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-07 11:33

    The answer to this relates to the role of SSL. It is a "shell" around the html/http conversation between client and server. Apache runs it. It's not really "in" PHP land. When you elect to recreate the key pair all you are really doing is kicking Apache in the shins to force the client /server to re-initiate their conversation with a new pair of SSL key pairs.

    In some senses this might be seen as a bit like remaking a session_id

    My question: Is there a reason why I have to specify the path to openssl.conf explicitly, because it seems to work fine without it:

    The creation of a self signed certificate is not being done here, a re-creation of it is. therefore when you don't supply a path, it's fine with it because it's already had a path from Apache.

提交回复
热议问题