You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Despite using app.trustedCertificates to configure a self-signed certificate as trusted, fetch() throws an error when sending a REST request to a server using that certificate:
TypeError: The operation couldn’t be completed. (NSURLErrorDomain error -1012.)
at ./src/app.js:10:8
Environment
Tabris.js version: 3.9.0
Device: Simulator
OS: iOS 16.4
Code snippet
Create a self-signed certificate for the domain name foo.bar:
openssl genpkey -algorithm RSA -out self-signed-key.pem
# In the next step, configure the common name to be `foo.bar`
openssl req -new -x509 -days 365 -key self-signed-key.pem -out self-signed-cert.pem
openssl x509 -outform der -in self-signed-cert.pem -out self-signed-cert.der
Map the domain name foo.bar to 127.0.0.1:
echo "127.0.0.1 foo.bar" | sudo tee -a /etc/hosts
Create a sample server using that self-signed certificate (a Deno-based service used in the example):
Problem description
Despite using
app.trustedCertificates
to configure a self-signed certificate as trusted,fetch()
throws an error when sending a REST request to a server using that certificate:Environment
Code snippet
foo.bar
:openssl genpkey -algorithm RSA -out self-signed-key.pem # In the next step, configure the common name to be `foo.bar` openssl req -new -x509 -days 365 -key self-signed-key.pem -out self-signed-cert.pem openssl x509 -outform der -in self-signed-cert.pem -out self-signed-cert.der
foo.bar
to127.0.0.1
:The text was updated successfully, but these errors were encountered: