Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS certificate encoding support #3283

Open
externl opened this issue Dec 17, 2024 · 0 comments
Open

iOS certificate encoding support #3283

externl opened this issue Dec 17, 2024 · 0 comments
Milestone

Comments

@externl
Copy link
Member

externl commented Dec 17, 2024

swift/Ice/info currently fails on iOS

testing connection information... Error: src/Ice/SSL/SecureTransportUtil.cpp:1010 ::Ice::FeatureNotSupportedException IceSSL on iOS does not support encodeCertificate

The encodeCertificate call in Connection.mm throws an exception:

  auto sslInfo = std::dynamic_pointer_cast<Ice::SSL::ConnectionInfo>(infoPtr);
    if (sslInfo)
    {
        std::string encoded;
        if (sslInfo->peerCertificate)
        {
            encoded = Ice::SSL::encodeCertificate(sslInfo->peerCertificate);
        }
        return [factory createSSLConnectionInfo:underlying peerCertificate:toNSString(encoded)];
    }

For now I'm going to ifdef out this section of code for iOS. Could/should we just provide the native certificate instead of this PEM encoded form?

@externl externl modified the milestones: 3.7.11, 3.8.0 Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant