I would like to test Service Worker in a local environment using iOS.

Asked 1 years ago, Updated 1 years ago, 112 views

When I tried to operate using browser-sync in Node.js,

server.js

var browserSync=require("browser-sync");
browserSync({
  server: "/public",
  https:true,
});

package.json

{
  "name": "01",
  "version": "1.0.0",
  "description":",
  "main": "index.js",
  "scripts": {
    "test": "echo\" Error: no test specified\"&exit1",
    "start": "node server.js"

  },
  "https":true,
  "keywords": [ ],
  "author":",
  "license": "ISC",
  "dependencies": {
    "browser-sync": "^2.24.5"
  }
}

The configuration is as follows.
However, ServiceWorker does not work because the certificate is an Ore certificate.
Is there any way to issue SSL in a local environment?

javascript npm

2022-09-30 19:29

1 Answers

Is there any way to issue SSL in a local environment?

Each iOS device requires an installation, but how about having iOS trust the Ore certificate?

The steps are as follows:

Send the Ore certificate of the server (e.g. server.crt) to iOS by e-mail, etc.

iOS opens the Ore certificate that was sent and installs it

On the iOS side, open Settings - General - Information - Certificate Trust Settings (at the bottom of Information)

The certificate installed in Certificate Trust Settings appears with the switch OFF state, so set it to switch ON

I think you can run the test by installing the Ore certificate on the test terminal.

Note:
How to deploy Secure SSL certificate to iOS?


2022-09-30 19:29

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.