Coder Social home page Coder Social logo

k4m4 / wifipass.co Goto Github PK

View Code? Open in Web Editor NEW
21.0 4.0 2.0 461 KB

Create Apple Wallet passes for your WiFi credentials.

Home Page: https://wifipass.co

License: MIT License

Shell 0.87% JavaScript 70.17% CSS 28.96%
wifi apple wallet pass generator nextjs

wifipass.co's Introduction

Create Apple Wallet passes for your WiFi credentials.

WiFi Pass

Configuration

Apple Pass Certificates

  1. Create a folder named components in the repo's root directory.
  2. Follow these instructions to generate your certificate files.
  3. Once the files have been generated, place them in the components directory.
  4. Rename the certificates to signerCert.pem, signerKey.pem, and wwdr.pem.
  5. Create a copy of the .env.example file and name it .env.
  6. Add an environment variable for the passphrase that you used when generating the certificates to the PASS_SIGNER_KEY_PASSPHRASE variable.

Firebase

  1. Create a new Firebase project in the Firebase console's project overview page.
  2. Add the project ID to the FIREBASE_PROJECT_ID environment variable.
  3. Navigate to your project's "Service accounts" settings (Project Settings > Service accounts) to generate a private key.
  4. Encode the private key using base64 and add it to your FIREBASE_PRIVATE_KEY environment variable.
  5. The file that was downloaded when generating the Firebase private key should also include a client_email address. Use that for your FIREBASE_CLIENT_EMAIL environment variable.
  6. In the Firebase console, navigate to the Realtime Database page. Copy the database's URL and add it to the FIREBASE_DB_URL environment variable.

Development

To start a development instance run:

~/wifipass.co ❯❯❯ npm install
~/wifipass.co ❯❯❯ npm run dev

You should then be able to access the webapp at http://localhost:3000.

License

MIT © Nikolaos Kamarinakis

wifipass.co's People

Contributors

k4m4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

ginixsan kab0a1

wifipass.co's Issues

Invalid certificate

It is not possible to install the downloaded passes as the certificate is invalid. Pass checked with Pkpass Validator.

WWDR Certificate
👎 WWDR Certificate is version (G4)

Only the G4 certificate is valid for signing passes with certificates generated after the 27th of January, 2022.

PassKit Certificate
👎 PassKit Certificate in date

Encoding the private key

Hey just after some more info on how to encode the price key to base64. I have encoded it and when I run the server and generate the wifi pass I get an internal server error and get this message in the terminal "Firebase admin initialization error Error: Failed to parse private key: Error: Invalid PEM formatted message."

I am also new to this so I am sure it is something stupid I am doing or have done something wrong.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.