I'm trying to import my projects from Redmine instance using Redmine Importers Plugin for JIM and I receive "Cannot login to Redmine site: javax/security/auth/x500/X500Principal" error.
Chrome says everything is fine with plan.io certificate.
Jira version is "v5.2.8#851-sha1:3262fdc"
plugin version is "1.0.9"
Redmine version is "Redmine 1.4.7.planio"
Any ideas how to import issues from plan.io to Jira?
This behavior turned out to be a bug in the Redmine importer.
The real problem was that java.lang.NoClassDefFoundError ('javax/security/auth/x500/X500Principal') was thrown. Unfortunately it was suppressed by eager error handling. Sorry for that.
The root cause we were not importing 'javax.*' in Redmine OSGi bundle that prevented this class from loading.
Please checkout new version (1.0.10) of the importer from marketplace that has this issue fixed.
This error often occurs due incorrect SSL configuration between JIRA and Redmine. Have you imported the Redmine SSL certificate into JIRA? You can do it according described here:
After that, add the following parameter to the JIRA startup options:
You can also temporarily disable the HTTPS support in Redmine for importing in JIRA.
I imported *.plan.io certificate to my keystore via
sudo /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/bin/keytool -import -alias tomcatCACert -file ~/planio.cert -keystore "/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/lib/security/cacerts
It was imported successfully. Then I ran jira script ./start-jira.sh with options you provided with path to keystore, but the error is still there. Unfortunately I can't switch off https because plan.io is a service and I don't have access to their nginx configuration.
I have small tool that can help you solve your problem. https://bitbucket.org/ajakubowski/sstester/src/840c71b3f586?at=master
This program basically connects to provided URL and if anything is wrong with certification path it writes which certificates are not contained in your keystore.
To run it use 'java -Djava.home='JAVA_HOME' -jar SSLTester.jar [HOST_URL]
Hopes this helps,
Hi Adam. I just tried your tool and it shows me everything is OK, but the error is still there.
Loading KeyStore /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/lib/security/cacerts... Opening connection to XXX.plan.io:443... Starting SSL handshake... No errors, certificate is already trusted Server sent 4 certificate(s): 1 Subject CN=*.plan.io, OU=Domain Control Validated, O=*.plan.io .... 2 Subject ... 3 Subject ... 4 Subject ... Connection to 'https://XXX.plan.io' is valid
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs