gitlab4j-api icon indicating copy to clipboard operation
gitlab4j-api copied to clipboard

cert validation even though it's set to ignore, outh2Login with username and password

Open fooller opened this issue 3 years ago • 1 comments

` <groupId>org.gitlab4j</groupId> <artifactId>gitlab4j-api</artifactId> 5.0.1

GitLabApi gitLabApi = GitLabApi.oauth2Login("http://your.gitlab.server.com", "username", "password");

org.gitlab4j.api.GitLabApiException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at org.gitlab4j.api.AbstractApi.handle(AbstractApi.java:326) at org.gitlab4j.api.AbstractApi.get(AbstractApi.java:67) at org.gitlab4j.api.RepositoryApi.getBranch(RepositoryApi.java:89)`

fooller avatar Jun 29 '22 02:06 fooller

I user this api

GitLabApi gitLabApi = GitLabApi.oauth2Login("http://your.gitlab.server.com/", "username", "password", false);

fooller avatar Jun 29 '22 02:06 fooller