Subject: | Windows paths do not work for ssl attributes |
Date: | Thu, 4 Feb 2016 04:36:49 -0700 |
To: | <bug-DBD-mysql [...] rt.cpan.org> |
From: | "Wallace Winfrey" <wallace.winfrey [...] oracle.com> |
When providing Windows filesystems paths - i.e. C:\path\to\my\ssl-cert.pem -
as the value of SSL attributes, DBD::mysql does not seem to know how to
parse it properly.
For example, if I construct a DSN that looks like:
dbi:mysql:database=foo;host=my.host;port=3306;mysql_ssl=1;mysql_ssl_ca_file=
C:\path\to\my\ssl-ca.pem;mysql_ssl_client_cert= C:\path\to\my\ssl-cert.pem;
mysql_ssl_client_key=C:\path\to\my\ssl-key.pem
I will get back the following error:
SSL error: Unable to get certificate from 'C'
If I use relative paths, it works OK, but this breaks when attempting to run
my Perl program on a different volume/drive than where the certs are
located.
I've tried escaping the paths in numerous ways, enclosing them in single &
double quotes, but nothing seems to work.
Thanks,
w