Cannot activate CE version behind a corporate proxy

I have followed this article to setup

and i can open them successfully.

However, when i try to active the CE license in intellij, it shows me below error in log file:
15:34:05.048 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.b] C:\Users\Derek.diffblue has permissions dir,read,write,exec
15:34:05.152 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.b] cannot resolve api.licensespring.com
15:34:11.450 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.b] fingerprint=f0fd3d7b99756c1a5bc18bc78d0549165c920a7e for subject=CN=api.licensespring.com
15:34:12.015 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.b] cannot resolve licensing.diffblue.com
15:34:13.339 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.b] fingerprint=1687a3fb2f3a380297c7b434846e338053c7cd90 for subject=CN=licensing.diffblue.com
15:34:14.345 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.b] cannot open connection
15:34:14.346 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.b] caused by Server returned HTTP response code: 400 for URL: https://licensing.diffblue.com/getCommunityKey
15:34:14.359 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.a] 1 * Sending client request on thread ApplicationImpl pooled thread 21
15:34:14.359 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.a] 1 > GET hardwareId=8FF5-8C91-AA8C-5A42-385C-A5E9-3307-257D-5646-6081-5E12-6A88-D81D-2420-18BB-5F3F
15:34:16.937 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.a] 1 * Received server response on thread ApplicationImpl pooled thread 21
15:34:16.937 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.a] 1 < 200
15:34:16.938 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.a] 1 < X-Cache: CONFIG_NOCACHE
15:34:16.938 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.a] 1 < request-context: appId=cid-v1:f6be4304-576f-407c-aff8-dfef2ab6e00a
15:34:16.938 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.a] 1 < ETag: W/“1d-DrEyKZl7MHB7tyD34Rmgv/A4ctM”
15:34:16.938 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.a] 1 < Connection: Keep-Alive
15:34:16.938 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.a] 1 < Vary: Origin
15:34:16.938 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.a] 1 < X-Azure-Ref: 0d4upYgAAAAA5Dq/U4QVAQpCSqPv3kojJSEtHMzBFREdFMDYwNwA3Zjg4YjQ2NC05Mjk3LTRlZmMtODQyNS0xYTg5NjliYWQxYTU=
15:34:16.938 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.a] 1 < Content-Length: 29
15:34:16.939 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.a] 1 < Date: Wed, 15 Jun 2022 07:34:16 GMT
15:34:16.939 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.a] 1 < X-Powered-By: Express
15:34:16.939 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.a] 1 < Content-Type: application/json; charset=utf-8
15:34:16.939 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.a] 1 < – response (redacting parts of the license key) –
15:34:16.940 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.a] 1 {“key”:“GQGN-XXXX-XXXX-XXXX”}
15:34:16.940 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.a] 1 < – response complete –
15:34:16.941 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.f] activating CE License Key
15:34:16.943 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.b] C:\Users\Derek.diffblue has permissions dir,read,write,exec
15:34:16.981 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.b] cannot resolve api.licensespring.com
15:34:16.981 [INFO][ApplicationImpl pooled thread 21][c.d.cover.j.b.b] fingerprint=f0fd3d7b99756c1a5bc18bc78d0549165c920a7e for subject=CN=api.licensespring.com
15:34:19.724 [DEBUG][ApplicationImpl pooled thread 21][c.l.i.s.LicenseService] [LicenseClientAPI#activateLicence] —> POST https://api.licensespring.com/api/v4/activate_license HTTP/1.1
15:34:21.560 [DEBUG][ApplicationImpl pooled thread 21][c.l.i.s.LicenseService] [LicenseClientAPI#activateLicence] <— ERROR IOException: Failed to authenticate with proxy (1835ms)
15:34:21.578 [WARN][AWT-EventQueue-0][c.d.i.plugin.f.a] License server unreachable - Check that you have an active internet connection and that any firewall rules

Hi @Derek

Thanks for getting in touch

As you can access both URLs from a browser but the Diffblue plugin cannot; it sounds like the proxy server settings haven’t been configured correctly, or some other proxy related issue is occurring.

Please could you confirm that you have configured your corporate proxy settings (using exactly the same settings your web browser) in IntelliJ as per the instructions Licensing network requirements | Diffblue Docs ?

Thanks again for getting in touch, we are always here to help

Matt @ Diffblue

Hi @Matt , thanks for replying. As you can see from the logs

However, i have tested the connection successfully via intellij’s check connection.

So can you confirm that diffblue really rely on the http proxy setting and the authentication setting to activate license?

Hi @Derek,

Thanks for the detail and the screengrab - it looks like our plugin doesn’t recognise the authentication mechanism. We are discussing with engineering and will get back to you ASAP.

Thank you for your patience

Matt @ Diffblue

Hi @Matt , may i know any updates for this issue?

Hi Derek,

I am very sorry for the delay in getting back to you - we created a support case but it seems the response didn’t work. We will do better this time.

We are scheduling a fix in an upcoming release; in the meantime I want to help you to try out Diffblue Cover. Could we jump on a Zoom so we can discuss other options?

Again, I am sorry for the delay here

Kind Regards

Matt @ Diffblue

Hi Derek,
As Matt mentioned we are currently working of a fix, in the meantime could you please try setting an environment variable dcover.disable.ssl.license.cert.check=true which can be accessed by using “Help > Edit custom properties” then restarting your IDE.


Thanks, Thomas @ Diffblue

Hi @Matt , sorry that i have not responded to you on time.
I can still wait for your delivery.

Hi @Thomas , thanks for your reply, but this is not the solution here.
You can check @Matt 's reply, he mentioned that it’s an issue when the proxy required authentication.

Hi Derek,

Just a quick update that a fix is due in the first release in August; in the meantime can I offer you a workaround to get you going?

Kind regards,

Jane @ Diffblue

Thanks @Jane_Walls , yes, sure. Please share if you have.

Hi @Derek

We have created a support case to send you this directly by email.
Please let me know if you haven’t received it.

Kind regards,

Jane @ Diffblue

Hi @Derek
As of the latest release 08.01 you should now be able to use the proxy authentication settings in intelij as expected.
Please let us know how you get on.
Thanks, Thomas @ Diffblue

Hi @Thomas , @Matt ,
Thanks for rolling out the fix, however, my IDEA version is 2021.3, so the latest plugin for me is 2022.07.02-2021.3.
Would you please provide the backport support for older IDEA version, so that more people can benefit from it?

Hi @Derek,
Our policy is to only support the latest and previous versions of Intellij which is currently 2022.1 and 2022.2.
Thanks, Thomas

Hi @Thomas @Matt , finally, I have upgraded to v2022.08.03-2022.2 and activated the license successfully.

Thanks for your support!