Skip to main content
Participating Frequently
Jun 6, 2025 6:41 AM UTC
Question

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

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
Jun 6, 2025 8:21 PM UTC

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

 

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