Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #22213
| From | Ian Pilcher <arequipeno@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Pass X509Certificate as String? |
| Message-ID | <59gRs.24201$H22.5679@newsfe13.iad> (permalink) |
| Organization | TeraNews.com |
| Date | 2013-02-08 17:48 -0600 |
This is a bit weird. I am writing an SSLSocketFactory for use with the PostgreSQL JDBC driver. Unfortunately, the driver imposes some very inconvenient criteria on the factory class. http://jdbc.postgresql.org/documentation/91/ssl-factory.html In particular, the class must have a zero-argument constructor or a constructor that takes a single String argument. My challenge is to somehow pass a java.security.cert.X509Certificate to this constructor. The only idea I've been able to come up with thus far is to serialize the certificate to a ByteArrayOutputStream, convert that to a String, and reverse the process in the constructor. Does anyone have a better idea? If not, is there a character set that can handle all values 0-255? Thanks! -- ======================================================================== Ian Pilcher arequipeno@gmail.com Sometimes there's nothing left to do but crash and burn...or die trying. ========================================================================
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
Pass X509Certificate as String? Ian Pilcher <arequipeno@gmail.com> - 2013-02-08 17:48 -0600
Re: Pass X509Certificate as String? Arne Vajhøj <arne@vajhoej.dk> - 2013-02-08 19:12 -0500
Re: Pass X509Certificate as String? Arne Vajhøj <arne@vajhoej.dk> - 2013-02-08 19:21 -0500
Re: Pass X509Certificate as String? Arne Vajhøj <arne@vajhoej.dk> - 2013-02-08 19:35 -0500
Re: Pass X509Certificate as String? Ian Pilcher <arequipeno@gmail.com> - 2013-02-08 18:50 -0600
Re: Pass X509Certificate as String? Arne Vajhøj <arne@vajhoej.dk> - 2013-02-08 19:57 -0500
Re: Pass X509Certificate as String? Arne Vajhøj <arne@vajhoej.dk> - 2013-02-08 23:34 -0500
Re: Pass X509Certificate as String? Roedy Green <see_website@mindprod.com.invalid> - 2013-02-09 10:10 -0800
Re: Pass X509Certificate as String? Ian Pilcher <arequipeno@gmail.com> - 2013-02-16 11:03 -0600
Re: Pass X509Certificate as String? Roedy Green <see_website@mindprod.com.invalid> - 2013-02-16 12:40 -0800
Re: Pass X509Certificate as String? Arne Vajhoej <arne@vajhoej.dk> - 2013-02-17 16:16 -0500
csiph-web