Unable to configure ssl when deploying jira plugin via bamboo

How to establish Trust ALL SSL connection to jira running on https? I want to configure a build that deploys a jira plugin to a DEV jira server and I'm getting an error:

Error occurred while running Task 'Deploys the plugin to JIRA(1)'. This build will fail. Caused by: 
error	27-Jun-2013 14:13:07	com.atlassian.bamboo.task.TaskException: Unable to POST WebSudo authentication request: peer not authenticated
error	27-Jun-2013 14:13:07		at com.atlassian.bamboo.plugins.confdeploy.UniversalPluginUploader.login(UniversalPluginUploader.java:247)
error	27-Jun-2013 14:13:07		at com.atlassian.bamboo.plugins.confdeploy.UniversalPluginUploader.upload(UniversalPluginUploader.java:71)
error	27-Jun-2013 14:13:07		at com.atlassian.bamboo.plugins.confdeploy.AutoDeployTask.execute(AutoDeployTask.java:82)
error	27-Jun-2013 14:13:07		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:183)
error	27-Jun-2013 14:13:07		at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:91)
error	27-Jun-2013 14:13:07		at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:85)
error	27-Jun-2013 14:13:07		at sun.reflect.GeneratedMethodAccessor539.invoke(Unknown Source)
error	27-Jun-2013 14:13:07		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
error	27-Jun-2013 14:13:07		at java.lang.reflect.Method.invoke(Method.java:616)
error	27-Jun-2013 14:13:07		at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
error	27-Jun-2013 14:13:07		at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
error	27-Jun-2013 14:13:07		at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
error	27-Jun-2013 14:13:07		at org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117)
error	27-Jun-2013 14:13:07		at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
error	27-Jun-2013 14:13:07		at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
error	27-Jun-2013 14:13:07		at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
error	27-Jun-2013 14:13:07		at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
error	27-Jun-2013 14:13:07		at $Proxy777.call(Unknown Source)
error	27-Jun-2013 14:13:07		at sun.reflect.GeneratedMethodAccessor539.invoke(Unknown Source)
error	27-Jun-2013 14:13:07		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
error	27-Jun-2013 14:13:07		at java.lang.reflect.Method.invoke(Method.java:616)
error	27-Jun-2013 14:13:07		at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
error	27-Jun-2013 14:13:07		at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
error	27-Jun-2013 14:13:07		at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
error	27-Jun-2013 14:13:07		at org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117)
error	27-Jun-2013 14:13:07		at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
error	27-Jun-2013 14:13:07		at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
error	27-Jun-2013 14:13:07		at $Proxy778.call(Unknown Source)
error	27-Jun-2013 14:13:07		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:204)
error	27-Jun-2013 14:13:07		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103)
error	27-Jun-2013 14:13:07		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:109)
error	27-Jun-2013 14:13:07		at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52)
error	27-Jun-2013 14:13:07		at java.lang.Thread.run(Thread.java:636)
error	27-Jun-2013 14:13:07	Caused by: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
error	27-Jun-2013 14:13:07		at sun.security.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:371)
error	27-Jun-2013 14:13:07		at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)
error	27-Jun-2013 14:13:07		at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:390)
error	27-Jun-2013 14:13:07		at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)
error	27-Jun-2013 14:13:07		at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
error	27-Jun-2013 14:13:07		at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
error	27-Jun-2013 14:13:07		at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:562)
error	27-Jun-2013 14:13:07		at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)
error	27-Jun-2013 14:13:07		at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
error	27-Jun-2013 14:13:07		at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
error	27-Jun-2013 14:13:07		at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)
error	27-Jun-2013 14:13:07		at com.atlassian.bamboo.plugins.confdeploy.UniversalPluginUploader.login(UniversalPluginUploader.java:219)
error	27-Jun-2013 14:13:07		... 32 more

1 answer

This can be caused if you are running Bamboo behind Apache with SSL, if your default SSL VirtualHost is not returning the same SSLCertificate as your Bamboo VirtualHost. We had a similar problem, because I didn't know /etc/httpd/conf.d/ssl.conf created a VirtualHost.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Thursday in Marketplace Apps

You + one app + a desert island...

Hi all! My name is Miles and I work on the Marketplace team. We’re looking for better ways to recommend and suggest apps that are truly crowd favorites, so of course we wanted to poll the Community. ...

1,864 views 4 6
Join discussion

Atlassian User Groups

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!

Find my local user group

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

Groups near you