• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

setRequestProperty for X 509 certificates  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to download public key certificates from the certificate authority website. The .cer and .crt files I am getting from my program are slightly incorrect. I assume there is a problem with the setRequestProperty. At the moment I am not setting any because when I try to set it as something like conn.setRequestProperty("Content-Type", "application/x-509-ca-cert"); the Buffer reader never gets any data from the website.

I know the data I am getting is wrong because when comparing the output from the application to the file I downloaded by hand from the site, there is a slight difference. It also says that it is an invalid certificate when I try to do anything with it.

Any ideas?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!