Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self Signed Certificate #9

Closed
EAnushan opened this issue Jan 26, 2016 · 5 comments
Closed

Self Signed Certificate #9

EAnushan opened this issue Jan 26, 2016 · 5 comments

Comments

@EAnushan
Copy link

I'm using a local instance of toranproxy with a self signed certificate. I get the following error when running composer update.

SSL certificate problem: self signed certificate:60

My .composer/config.json looks like this:

{
    "config": {
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://toran.local/repo/private/",
            "options": {
                "ssl": {
                    "allow_self_signed": true
                }
            }
        }
    ]
}

I've allowed self signed certificates here, and it works fine without the plugin. I'm assuming this option needs to be forwarded to the cURL handler that does the prefetching.

@morales2k
Copy link

I get the same SSL error with the following composer.json file:

{
    "config": {
        "vendor-dir": "include/vendor",
        "prestissimo": {
            "maxConnections": 6,
            "minConnections": 3,
            "pipeline": false,
            "verbose": true
        }
    },
    "autoload": {
        "classmap": [
          "include/libreria/"
        ]
    },
    "require": {
        "hautelook/phpass": "0.3.0",
        "phpmailer/phpmailer": "v5.2.6",
        "xuanyan/database": "dev-master",
        "facebook/php-sdk-v4" : "4.0.*",
        "soup/paginator": "1.0.4",
        "twig/twig": "1.*",
        "jv2222/ezsql_version": "dev-master",
        "mobiledetect/mobiledetectlib": "dev-master",
        "guzzlehttp/guzzle": "5.0.*@dev",
        "anlutro/curl": "dev-master",
        "illuminate/database": "~5.0",
        "symfony/var-dumper": "3.0.*@dev",
        "hyyan/jaguar": "1.0.*",
        "slim/slim": "2.2.0"
    }
}

@hirak
Copy link
Owner

hirak commented Jan 29, 2016

It's difficult to fix. But I can create new option for the solution.

{
  "config": {
    "prestissimo": {
      "insecure": true,
      "capath": "/absolute/path/to/cacert.pem"
    }
  }
}

insecure (bool)

  • default: false

If insecure is true, this plugin doesn't verify all https certs. (CURLOPT_VERIFYPEER is off)
You should not change this option.

capath (string)

  • default: "" (empty)

path to cacert.pem

@hirak hirak modified the milestones: v0.2.0, v0.1.5 Jan 30, 2016
@hirak
Copy link
Owner

hirak commented Jan 30, 2016

@EAnushan @jlmorales I released v0.1.5.
Please try it.

$ composer global remove hirak/prestissimo
$ composer global install hirak/prestissimo

@hirak hirak closed this as completed Jan 30, 2016
@EAnushan
Copy link
Author

The new options seem to work just fine. Thank you!

@morales2k
Copy link

Thanks for the update! I can also confirm it. I'm converting everyone at the office when they saw just how fast this is. :) Envy. The best marketing tool. LOL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants