Skip to content

Invalid certificate error in login api #94

@shubh-solanki

Description

@shubh-solanki

I'm trying to get GitLapApi object with login method because I don't have private token of the user. But when I try to get the object I get following Exception

2017-11-02`` 09:30:10,975 ERROR [THREAD ID=pool-3-thread-56]-[GitLab4JConnectionService] [line 66] Failed in getGitLabConnection(). Exception: org.gitlab4j.api.GitLabApiException: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present at org.gitlab4j.api.AbstractApi.handle(AbstractApi.java:326) ~[gitconnector-1.4.0.jar:?] at org.gitlab4j.api.AbstractApi.post(AbstractApi.java:122) ~[gitconnector-1.4.0.jar:?] at org.gitlab4j.api.SessionApi.login(SessionApi.java:39) ~[gitconnector-1.4.0.jar:?] at org.gitlab4j.api.GitLabApi.login(GitLabApi.java:64) ~[gitconnector-1.4.0.jar:?] at org.gitlab4j.api.GitLabApi.login(GitLabApi.java:79) ~[gitconnector-1.4.0.jar:?]

I'm trying to connect to a Gitlab instance on which SSL is enables with a self signed certificate.
I think we might need a parameter to ignore certificate errors in login method just like we can set ignore certificate errors after initialzing GitlabApi object.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions