Re: connector/j client certificate
Abhishek Mistry <[email protected]> Fri, 31 Jul 2015 09:28:37 -0400
| Newsgroups | gmane.comp.db.mysql.java |
|---|---|
| Message-ID | <CAO6z227==FTt7=2MrxTkjqYCwTqGbgONaOVT_w_mBGOHM4mmoQ@mail.gmail.com> |
--089e0149bc1a27238d051c2bcc24 Content-Type: text/plain; charset=UTF-8 Thank you for that clarification. It makes sense now and works. Abhishek On Thu, Jul 30, 2015 at 11:53 PM, Mark Matthews <[email protected]> wrote: > On 07/30/2015 10:34 PM, Abhishek Mistry wrote: > >> >> I actually just figured it out from some Oracle (not mysql) >> documentation. The correct format is not a file uri. On windows it's >> file:/C:/path_with_forward_slashes/.keystore >> >> One slash instead of two and you have to put the drive letter too. >> Strange. >> >> > Hi Abhishek, > > The correct format is a file URI, because the driver under the hood is > using java.net.URL to canonicalize the path and open an InputStream to give > to the KeyStore implementation. You didn't say what actual URI you tried, > but it *should* be file:///c:/path/to/your/keystore/.keystore if it is > standards-compliant. > > (note it's 3 slashes). Java's URL class *may* parse what you're using in > some way that works (many URL implementations, including the ones in web > browsers, will parse "wrongly formatted" URLs), but I don't see it > documenting where it's supported :| > > -Mark > > -- > Mark Matthews <[email protected]> > Consulting Member, Technical Staff - MySQL Enterprise Tools @ Oracle > > --089e0149bc1a27238d051c2bcc24--