Cannot connect to gmail

15 views
Skip to first unread message

santhosh kumar

unread,
Feb 21, 2011, 5:10:01 AM2/21/11
to JOpenID Discussion Group
Hi,

This is santhosh, am new to JOpenId.

I'm just trying to connect gmail and using jopenid-1.07.jar.

Here's my code.

OpenIdManager manager = new OpenIdManager();
manager.setReturnTo("http://localhost:8080/open/welcome.jsp");
manager.setRealm("http://localhost:8080/");

Endpoint endpoint = manager.lookupEndpoint("https://
www.google.com/accounts/o8/ud");
Association association = manager.lookupAssociation(endpoint);
request.getSession().setAttribute(ATTR_MAC,
association.getRawMacKey());
request.getSession().setAttribute(ATTR_ALIAS,
endpoint.getAlias());
Authentication authentication =
manager.getAuthentication(request,association.getRawMacKey(),ATTR_ALIAS);

String url = manager.getAuthenticationUrl(endpoint,
association);

response.sendRedirect(url);"


I'm getting the following error
"PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to
find valid certification path to requested target"

I spend 2 days to solve this issue,but cant find the solution.

Reply all
Reply to author
Forward
0 new messages