Error using ssl cert with PHP

前端 未结 5 1176
后悔当初
后悔当初 2021-01-02 10:27

I am new to php and I am getting this error trying to load a cert

jameys-macbookpro41:~ user$ php -f ~/Sites/providerService.php

Warning: s

5条回答
  •  清酒与你
    2021-01-02 10:50

    Notes for the future (after having a big headache because of all of this): 1. if you get the handshake error - the pem file you created is probably wrong.

    a. make sure the file is in the same directory as the php you are trying to run. b. export the certifcate p12 file AND the key under it in the keychain access utility.both of these files will be the SAME size, but they ARE different. c. do the above "openssl" commands in the macintosh terminal.

    1. currently, all I can do is run the php as sudo, because of the chmod 400 for ck.pem. something got to give...

    btw, the message "Failed to enable crypto" will dissappear when the system runs correctly.

提交回复
热议问题