Neo4j-Bolt
view release on metacpan or search on metacpan
ca_file => <path/to/file/of/CAs
pk_file => <path/to/private/key.pm
pk_pass => <private/key.pm passphrase>
Example:
$cxn = Neo4j::Bolt->connect_tls('bolt://all-the-young-dudes.us:7687', { ca_cert => '/etc/ssl/cert.pem' });
When neither `ca_dir` nor `ca_file` are specified, an attempt will
be made to use the default trust store instead.
This requires [IO::Socket::SSL](https://metacpan.org/pod/IO::Socket::SSL) or [Mozilla::CA](https://metacpan.org/pod/Mozilla::CA) to be installed.
- set\_log\_level($LEVEL)
When $LEVEL is set to one of the strings `ERROR WARN INFO DEBUG` or `TRACE`,
libneo4j-client native logger will emit log messages at or above the given
level, on STDERR.
Set to `NONE` to turn off completely (the default).
# SEE ALSO
lib/Neo4j/Bolt.md view on Meta::CPAN
ca_file => <path/to/file/of/CAs
pk_file => <path/to/private/key.pm
pk_pass => <private/key.pm passphrase>
Example:
$cxn = Neo4j::Bolt->connect_tls('bolt://all-the-young-dudes.us:7687', { ca_cert => '/etc/ssl/cert.pem' });
When neither `ca_dir` nor `ca_file` are specified, an attempt will
be made to use the default trust store instead.
This requires [IO::Socket::SSL](https://metacpan.org/pod/IO::Socket::SSL) or [Mozilla::CA](https://metacpan.org/pod/Mozilla::CA) to be installed.
- set\_log\_level($LEVEL)
When $LEVEL is set to one of the strings `ERROR WARN INFO DEBUG` or `TRACE`,
libneo4j-client native logger will emit log messages at or above the given
level, on STDERR.
Set to `NONE` to turn off completely (the default).
# SEE ALSO
lib/Neo4j/Bolt.pm view on Meta::CPAN
}
sub connect_tls {
my $self = shift;
my ($url, $tls) = @_;
unless ($tls && (ref($tls) == 'HASH')) {
die "Arg 1 should URL and Arg 2 a hashref with keys 'ca_dir','ca_file','pk_file','pk_pass'"
}
my %default_ca = ();
eval {
require IO::Socket::SSL;
%default_ca = IO::Socket::SSL::default_ca();
};
eval {
require Mozilla::CA;
$default_ca{SSL_ca_file} = Mozilla::CA::SSL_ca_file();
} unless %default_ca;
return $self->connect_(
$url,
$tls->{timeout},
1, # encrypt
$tls->{ca_dir} // $default_ca{SSL_ca_path} // "",
lib/Neo4j/Bolt.pm view on Meta::CPAN
ca_file => <path/to/file/of/CAs
pk_file => <path/to/private/key.pm
pk_pass => <private/key.pm passphrase>
Example:
$cxn = Neo4j::Bolt->connect_tls('bolt://all-the-young-dudes.us:7687', { ca_cert => '/etc/ssl/cert.pem' });
When neither C<ca_dir> nor C<ca_file> are specified, an attempt will
be made to use the default trust store instead.
This requires L<IO::Socket::SSL> or L<Mozilla::CA> to be installed.
=item set_log_level($LEVEL)
When $LEVEL is set to one of the strings C<ERROR WARN INFO DEBUG> or C<TRACE>,
libneo4j-client native logger will emit log messages at or above the given
level, on STDERR.
Set to C<NONE> to turn off completely (the default).
=back
( run in 0.556 second using v1.01-cache-2.11-cpan-4d50c553e7e )