Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

FLC Utility Pack issue

daniel.wrzesniewski
Participant

FLC Utility Pack issue

daniel.wrzesniewski
Participant
Participant

I was a participant  of the Fusion Manage PLM bootcamp in 2021. I got the FLC Utility Pack to learn.

After a few years i have to use  FLC_Utility_Pack.v1.07.1.2 beta1, but I have a problem.

 

For example.

When I run  .\SnapshotTool.bat  i get the error „com.sun.jersey.api.client.ClientHandlerException: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative DNS name matching [TENANT_NAME].autodeskplm360.net found.”

 

Yes. I have available tenants. 

Yes, I can log into all tenants directly in the browser.

 

I have wrote to authors of the FLC Utility Pack but they don't work in Autodesk anymore.

 

Do you know the FLC Utility Pack?

Do you have any idea why this error appears?

Do you now someone who still develop the FLC Utility in Autodesk? 

 

 

 

0 Likes
Reply
641 Views
2 Replies
Replies (2)

daniel.wrzesniewski
Participant
Participant

If anyone has a simillar problem, this code is the solution.

You need to decompile and recompile  main lib with this code.

 

static {
    disableSslVerification();
}

private static void disableSslVerification() {
    try
    {
        // Create a trust manager that does not validate certificate chains
        TrustManager[] trustAllCerts = new TrustManager[] {new X509TrustManager() {
            public java.security.cert.X509Certificate[] getAcceptedIssuers() {
                return null;
            }
            public void checkClientTrusted(X509Certificate[] certs, String authType) {
            }
            public void checkServerTrusted(X509Certificate[] certs, String authType) {
            }
        }
        };

        // Install the all-trusting trust manager
        SSLContext sc = SSLContext.getInstance("SSL");
        sc.init(null, trustAllCerts, new java.security.SecureRandom());
        HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());

        // Create all-trusting host name verifier
        HostnameVerifier allHostsValid = new HostnameVerifier() {
            public boolean verify(String hostname, SSLSession session) {
                return true;
            }
        };

        // Install the all-trusting host verifier
        HttpsURLConnection.setDefaultHostnameVerifier(allHostsValid);
    } catch (NoSuchAlgorithmException e) {
        e.printStackTrace();
    } catch (KeyManagementException e) {
        e.printStackTrace();
    }
}

Details https://stackoverflow.com/questions/19540289/how-to-fix-the-java-security-cert-certificateexception-... 

 

 

 

 

0 Likes

aaron_lord
Community Manager
Community Manager

Daniel I have removed the solution tag from your post and need to highlight the security risk associated with decompiling and recompiling Autodesk utilities with modifications. Autodesk does not recommend bypassing the https certification protection for any utility. Feel free to send me a DM I'll attempt to connect you with someone who can help find a safer solution to your issue with the utility.