Skip to main content
Participating Frequently
June 6, 2025
Question

Run in app container causes "Fail to establish SSL connection."

  • June 6, 2025
  • 1 reply
  • 128 views

I am working on plugin development using Adobe Acrobat SDK (C++) .

    if (bind(serverSocket, (struct sockaddr*)&serverAddr, sizeof(serverAddr)) == SOCKET_ERROR) {
        return false;
    }

    // Get the assigned port
    int addrLen = sizeof(serverAddr);
    if (getsockname(serverSocket, (struct sockaddr*)&serverAddr, &addrLen) == SOCKET_ERROR) {
        return false;
    }

    DWORD assignedPort = ntohs(serverAddr.sin_port);
    std::string po = "Assigned Port: " + std::to_string(assignedPort);

    // Update the redirectURI with the assigned port
    config.redirectURI = "http://localhost:" + std::to_string(assignedPort);
    return true;

and then when I try to connect,
I get Unable to establish SSL connection when my Protected mode is enabled and Run in app container is checked. 
If I uncheck Run In app container it works perfectly fine. 
I have made sure that all registries and folders which are required are whitelisted.
NOTE: This happens only on Virtual Destop. In other environments, it works in both scenarios (checked/unchecked).

What am I missing? Is there some setting that needs to be turned on/off? 


1 reply

Thom Parker
Community Expert
Community Expert
June 6, 2025

Acrobat is sandboxed.  As you've discovered, there are different levels of protection based on user security settings. But in general, protected mode blocks access to the local system, and I think that running in a container blocks access to the outside world.  

Read this article:

https://www.adobe.com/devnet-docs/acrobatetk/tools/AppSec/sandboxprotections.html

You need to create a broker

https://opensource.adobe.com/dc-acrobat-sdk-docs/library/overview/SandboxBrokerExt.html

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often