On 15 May 2023, at 15:34, 'Nagarjuna Veeraboyani' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:Hi There,We installed gerrit as part k8s pod. git clone over ssh & https used to work before upgrading to 3.7.2, now there seems to be an issue with git clone over https.seeing below fatal error:git clone "https://gerrit-staging.local.xxx.com/yyy-jobs"
Cloning into 'yyy-jobs'...
fatal: unable to access 'https://gerrit-staging.local.xxx.com/yyy-jobs/': SSL: no alternative certificate subject name matches target host name 'gerrit-staging.local.xxx.com'
Using java version inside pod:java --version
openjdk 11.0.16 2022-07-19
OpenJDK Runtime Environment (build 11.0.16+8-post-Ubuntu-0ubuntu118.04)
OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Ubuntu-0ubuntu118.04, mixed mode, sharing)Anyone else seen this behavior ?
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/2693d7e7-39f1-4248-8db6-47b35524a61en%40googlegroups.com.
Thanks for prompt response Luca,Why did I skip the ssl verification like below seeing error: "fatal: unable to update url base from redirection:" as below.git -c http.sslVerify=false clone "https://gerrit-staging.local.forwardnetworks.com/fwd-jenkins-jobs"
Cloning into 'fwd-jenkins-jobs'...
fatal: unable to update url base from redirection:
asked for: https://gerrit-staging.local.xxx.com/fwd-jenkins-jobs/info/refs?service=git-upload-pack
How and where can I change the ssl config?
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/CANYP%2B8sDBka34tTzD-W%3D-ZuAGFW9P1c_8cfJnn%3Dn3YuPoSdsVg%40mail.gmail.com.
Hi Fabio,I did pass the right credentials but still getting the same login redirection error as below.git -c http.sslVerify=false clone "https://{username}:{pwd}@gerrit-staging.local.xxx.com/fwd-jenkins-jobs"
On Tuesday, May 16, 2023 at 2:08:54 AM UTC+2 Nagarjuna Veeraboyani wrote:Hi Fabio,I did pass the right credentials but still getting the same login redirection error as below.git -c http.sslVerify=false clone "https://{username}:{pwd}@gerrit-staging.local.xxx.com/fwd-jenkins-jobs"If Gerrit handles authentication you'll need to add an '/a/' after $FQDN/$CONTENT_PATH.
On Tuesday, May 16, 2023 at 9:01:31 AM UTC+2 Sven Selberg wrote:On Tuesday, May 16, 2023 at 2:08:54 AM UTC+2 Nagarjuna Veeraboyani wrote:Hi Fabio,I did pass the right credentials but still getting the same login redirection error as below.git -c http.sslVerify=false clone "https://{username}:{pwd}@gerrit-staging.local.xxx.com/fwd-jenkins-jobs"If Gerrit handles authentication you'll need to add an '/a/' after $FQDN/$CONTENT_PATH.should be "$FQDN/$CONTEXT_PATH".
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/bba2e19d-f52f-4247-a170-dcabf75a723dn%40googlegroups.com.
On Tue, May 16, 2023 at 9:36 AM Sven Selberg <sven.s...@axis.com> wrote:On Tuesday, May 16, 2023 at 9:01:31 AM UTC+2 Sven Selberg wrote:On Tuesday, May 16, 2023 at 2:08:54 AM UTC+2 Nagarjuna Veeraboyani wrote:Hi Fabio,I did pass the right credentials but still getting the same login redirection error as below.git -c http.sslVerify=false clone "https://{username}:{pwd}@gerrit-staging.local.xxx.com/fwd-jenkins-jobs"If Gerrit handles authentication you'll need to add an '/a/' after $FQDN/$CONTENT_PATH.should be "$FQDN/$CONTEXT_PATH".I think the /a prefix should go in between domain name and context path like in your example"$FQDN/a/$CONTEXT_PATH"
On Tuesday, May 16, 2023 at 9:50:59 AM UTC+2 Matthias Sohn wrote:On Tue, May 16, 2023 at 9:36 AM Sven Selberg <sven.s...@axis.com> wrote:On Tuesday, May 16, 2023 at 9:01:31 AM UTC+2 Sven Selberg wrote:On Tuesday, May 16, 2023 at 2:08:54 AM UTC+2 Nagarjuna Veeraboyani wrote:Hi Fabio,I did pass the right credentials but still getting the same login redirection error as below.git -c http.sslVerify=false clone "https://{username}:{pwd}@gerrit-staging.local.xxx.com/fwd-jenkins-jobs"If Gerrit handles authentication you'll need to add an '/a/' after $FQDN/$CONTENT_PATH.should be "$FQDN/$CONTEXT_PATH".I think the /a prefix should go in between domain name and context path like in your example"$FQDN/a/$CONTEXT_PATH"We (for whatever historical reason) have a context path to our Gerrit server and the /a definitely goes after the context path.It is Gerrit that reads the "/a" and Gerrit only serves what is under $FQDN/$CONTEXT_PATH.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/06ac1b3d-b258-4f96-bb27-adffd019169dn%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/repo-discuss/2vSLvFEYO_c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/CAKSZd3Q8md7yeZ-gmeMwOhFmmOb1Z8zjBSQo5ugw8T8c6yu7hg%40mail.gmail.com.
Thanks a lot Matthias,git clone "https://username:p...@gerrit.local.xxx.com/a/fwd-jenkins-jobs" and git clone "https://x...@gerrit.local.xxx.com/a/fwd-jenkins-jobs" (gitconfig creds) worked in our case.