Skip to content

Ssl configuration

Compare
Choose a tag to compare
@transistive transistive released this 14 Jan 14:21
· 690 commits to main since this release
2db4982

Made it possible to configure some SSL parameters in the driver configuration object. examples include:

$config = DriverConfiguration::default()
            ->withSslConfiguration(
                SslConfiguration::default()
                    ->withVerifyPeer(false) //disables peer verification
                    ->withMode(SslMode::FROM_URL()) // looks at the URL to determine the enabling of ssl
            );
            
$driver = \Laudis\Neo4j\Basic\Driver::create('neo4j+s://localhost', $config);

$client = \Laudis\Neo4j\ClientBuilder::create()
            ->withDefaultDriverConfiguration($config)
            ->withDriver('default', 'neo4j+s://localhost')
            ->build();