• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

SSL Certificate

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am trying to install an SSL certificate in tomcat 8.5.  
I keep getting the following error: " java.lang.IllegalArgumentException: Illegal character in opaque part at index 2: C:\Windows\system32\config\systemprofile/.keystore".
I do not reference "C:\Windows\system32\config\systemprofile/.keystore" anywhere.  Even if I change the "server.xml" file to point to a keystore that does not exist I am still getting the same error.  I have attached the "server.xml" and the tomcat log.
Any help would be greatly appreciated.




Thanks,

Joseph
 
Saloon Keeper
Posts: 2613
329
Android Eclipse IDE Angular Framework MySQL Database TypeScript Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems like the attachments did make it.  Maybe just embed the contents of the files in a post using Code Tags.  If the log file is long, trim it down to include what is relevant.

 
Joe Walt
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
server.xml


tomcat log

 
Ron McLeod
Saloon Keeper
Posts: 2613
329
Android Eclipse IDE Angular Framework MySQL Database TypeScript Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like there maybe two issues:
   - the attribute name is keystoreFile, not keystorefile (this matters on Linux, not sure about Windows)
   - it appears like the attribute value is being parsed as a URI - trying specifying file:///C:/Users/jitadmin/TestKeyStore.jks

keystoreFile="file:///C:/Users/jitadmin/TestKeyStore.jks"
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!