YahooFinance sync stopped working

Hello, the sync of latest prices stopped working for all securities. Here is the example error log:

Mon Jan 10 22:11:02 MSK 2022
Download error (attempt 1) for ticker IEMG: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

java.io.IOException: Download error (attempt 1) for ticker IEMG: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

	at name.abuchen.portfolio.online.impl.YahooFinanceQuoteFeed.internalGetQuotes(YahooFinanceQuoteFeed.java:178)

	at name.abuchen.portfolio.online.impl.YahooFinanceQuoteFeed.getHistoricalQuotes(YahooFinanceQuoteFeed.java:138)

	at name.abuchen.portfolio.ui.jobs.UpdateQuotesJob$2.run(UpdateQuotesJob.java:273)

	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

	at java.base/sun.security.ssl.Alert.createSSLException(Unknown Source)

	at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)

	at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)

	at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)

	at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(Unknown Source)

	at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate(Unknown Source)

	at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume(Unknown Source)

	at java.base/sun.security.ssl.SSLHandshake.consume(Unknown Source)

	at java.base/sun.security.ssl.HandshakeContext.dispatch(Unknown Source)

	at java.base/sun.security.ssl.HandshakeContext.dispatch(Unknown Source)

	at java.base/sun.security.ssl.TransportContext.dispatch(Unknown Source)

	at java.base/sun.security.ssl.SSLTransport.decode(Unknown Source)

	at java.base/sun.security.ssl.SSLSocketImpl.decode(Unknown Source)

	at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source)

	at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

	at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

	at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:436)

	at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:384)

	at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)

	at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376)

	at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)

	at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)

	at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)

	at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)

	at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)

	at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)

	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)

	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)

	at name.abuchen.portfolio.util.WebAccess.executeWith(WebAccess.java:205)

	at name.abuchen.portfolio.util.WebAccess.get(WebAccess.java:176)

	at name.abuchen.portfolio.online.impl.YahooFinanceQuoteFeed.requestData(YahooFinanceQuoteFeed.java:206)

	at name.abuchen.portfolio.online.impl.YahooFinanceQuoteFeed.internalGetQuotes(YahooFinanceQuoteFeed.java:173)

	... 3 more

Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

	at java.base/sun.security.validator.PKIXValidator.doBuild(Unknown Source)

	at java.base/sun.security.validator.PKIXValidator.engineValidate(Unknown Source)

	at java.base/sun.security.validator.Validator.validate(Unknown Source)

	at java.base/sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)

	at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)

	at java.base/sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)

	... 31 more

Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

	at java.base/sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source)

	at java.base/sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)

	at java.base/java.security.cert.CertPathBuilder.build(Unknown Source)

	... 37 more



Please tell us more about your system.

OS Name Microsoft Windows 10 Enterprise
Version 10.0.18362 Build 18362
System Model HP EliteBook 840 G5
Processor Intel(R) Core™ i5-8350U CPU @ 1.70GHz, 1896 Mhz, 4 Core(s), 8 Logical Processor(s)
Locale Russia

I haven’t run PP for a week, just updated to the latest version of PP and then the issue appeared.
Nothing really changed in my system since then… maybe it’s due to the latest PP update

Nevermind, I just found the cause of the problem. It’s due to the VPN I’m using for my work. I guess the topic could be closed.