Re: How to add a ssl server cert for groovy?

Paul King <[email protected]>
Newsgroups gmane.comp.lang.groovy.user
Message-ID <CAMbkE7RHbmtRSXJCgq0emw4JeAeeja+Ozu=0Et8pMojdhu8=vg@mail.gmail.com>
Hi David,

Groovy sits on top of the JDK, so if you install cacerts into the JDK
you are using, then Groovy should use them just fine.

Possibly there could be issues depending on what client library you
are using to make the https connection.

Cheers, Paul.

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Fri, Feb 16, 2024 at 9:25 AM David Karr <[email protected]> wrote:
>
> I work behind a firewall, and it requires that I add a cert for our proxy to the cacerts file in the Java distribution. This works fine.
>
> I have a quite old version of Groovy installed on my desktop, v2.4.21, which is the version used by our Jenkins pipeline script.  I want to test some code in groovyConsole before I try to run it on our CI server. For many things, this works fine. However, I'm trying to iterate on some code that makes a https connection, and I'm getting an error in groovyConsole that I believe is the same error I get when the server cert is missing ("PKIX path building failed"), which isn't surprising because I never installed the root cert in the Groovy distribution.
>
> I've never really looked inside the Groovy distribution before. I don't even see a cacerts file or anything that really looks like it, so it must do this in a different way than the Java distribution. Is it possible that this is because I'm using such an old version of Groovy?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.