Win a copy of Microservices in Action this week in the Web Services forum!
  • 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

SSL Certificate  RSS feed

 
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: 2156
278
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • 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: 2156
278
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • 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!