Giter Site home page Giter Site logo

websgx's Introduction

WebSGX Attestation Javascript Library

Overview

Please check our google doc for detial information: Link to Development Document

Server

Environment

Nginx + PHP + Intel SGX SDK 1.7 running on Ubuntu 14.04.5 LTS

Linux Server

Through PHP we communicate with Linux Server by socket. Our Client call this PHP via AJAX, and get json return. Due to the discontinue of the whole attestation process. whenever each client send a message to server. it should send its identification ID and the message type. So server can process it.

Server PHP

It used for exchange information between server and web client.

Running command:

./sample -c ../../server_config.txt

Web Client

Call path: start from index.html, the function are called sequently as below, and the functions are defined at remoteAttestation.js.

index.html -> receiveMSG1andProcess() -> deriveKeys() -> retreiveRL() -> generatAndSendMSG2() -> receiveMSG3andProcess() -> sendMSG4withFile() -> sendSamFile() -> sendRefFile() -> sendIndexFile()

Web Client Library (Node.js)

IAS Communication

IAS certificate

bob_pfx.pfx is the file we submitted to Intel SGX IAS for get the SPID.

keys.txt file contains all the requried input for the Intel WebSGX attestation.

password file contains the passwrod for improting the certification to the computer when we want to communicate with IAS.

The left three files (RK_PUB.PEM, cert.pem, key.pem) are the different format key of the certification

websgx's People

Contributors

chao92 avatar

Watchers

James Cloos avatar

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.