SSL certificate error

后端 未结 3 794
执念已碎
执念已碎 2020-12-06 18:18

I am testing SSL access to a local node server with key,ca,cert in options ( self-signed w OpenSSL)

var server_options = {
  key: fs.readFileSync(\'/etc/ssl/         


        
3条回答
  •  甜味超标
    2020-12-06 18:45

    On mac, I was getting similar ssl relating error while trying to install composer.

    error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate

    for the command

    php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
    

    But I successfully installed it by running the command

    curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/composer/
    

    as per instructed here.

提交回复
热议问题