AnsweredAssumed Answered

The problem of integration with google docs (03010003 Wrapped Exception)

Question asked by michal.kominek@mds.com.pl on Apr 1, 2014
Latest reply on Jan 12, 2016 by iferraro
Hello,

We would like to integrate alfresco share with google docs. Please look at the attached pictures: screen_1.PNG, screen_2.PNG and screen_3.PNG.

1. screen_1.PNG - we choose the option to create content Google Docs Document.
2. screen_2.PNG -  a confirmation window appears.
3. I give username and password to google account
4. after logging shows me an error Exception: javax.net.ssl.SSLPeerUnverifiedException - peer not authenticated (pls. see screen_3.PNG)

- Alfresco Share Community Version 4.2.c
- Ubuntu 10.04.4 LTS


500 Description:    An error inside the HTTP server which prevented it from fulfilling the request.

Message:   03010003 Wrapped Exception (with status template): I/O error: peer not authenticated; nested exception is javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

Exception:   javax.net.ssl.SSLPeerUnverifiedException - peer not authenticated

sun.security.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:397)
org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)
org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:390)
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)
org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:561)
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)
org.springframework.social.support.HttpComponentsClientHttpRequest.executeInternal(HttpComponentsClientHttpRequest.java:81)
org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:52)
org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:438)
org.springframework.web.client.RestTemplate.execute(RestTemplate.java:401)
org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:279)
org.springframework.social.oauth2.OAuth2Template.postForAccessGrant(OAuth2Template.java:152)
org.springframework.social.oauth2.OAuth2Template.exchangeForAccess(OAuth2Template.java:104)
org.alfresco.integrations.google.docs.service.GoogleDocsServiceImpl.completeAuthentication(GoogleDocsServiceImpl.java:504)
org.alfresco.integrations.google.docs.webscripts.CompleteAuth.executeImpl(CompleteAuth.java:63)
org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)
org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:433)
org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:495)
org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:533)
org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:349)
org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377)
org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)


I understand that the problem is the lack of a certificate (Google) on the machine Alfresco (Ubuntu 10.04.4 LTS).
We tried to install the google certificate on the machine  but to no avail.
Also we no managed to find the information to which the key store we must to import the certificate  to work the integration with Google Docs.
Can know how and where to import the certificate?

Attachments

Outcomes