Giter VIP home page Giter VIP logo

mardeni / chrome-native-messaging-java Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sezerug/chrome-native-messaging-java

0.0 1.0 0.0 796 KB

A Chrome Extension interacting with the Native Messaging API/Message Passing, which calls a Java program, in order to access host information, as certificate store. All this proccess is just to simulate a Java Applet scenario, without NPAPI.

License: MIT License

HTML 3.48% JavaScript 7.80% Batchfile 3.85% Java 71.00% Shell 13.87%

chrome-native-messaging-java's Introduction

chrome-native-messaging-java

A Chrome Extension interacting with the Native Messaging API/Message Passing, which calls a Java program, in order to access host information, as certificate store. All this proccess is just to simulate a Java Applet scenario, without NPAPI.

tested only on Windows.

This application fill the requirements below:

  1. Web Application (test-ui folder), which exchanges messages with a Chrome Extension via JSON (app folder).
  2. Chrome Extension exchanges messages with the Chrome Native Messaging API (host-dist folder), which calls a .bat and it calls a Java program (host-project folder) to access the Windows Certificate Store in order to list all the availabe certificates or sign documents.
  3. Install and uninstall host application.

###How to test:###

  1. Change line 15 and 19 in app/manifest.json for your application url.
  2. Create a folder C:\ext, copy all the files from host-dist and paste there.
  3. Compile the host-project with 'mvn package' (Maven), copy the generated jar and paste in C:\ext
  4. Run the install_host.bat from installer folder.
  5. Put Chrome in Developer mode, drag the app folder and drop in the Chrome Extensions page, in your browser. More details here.
  6. Open the index.html from test-ui and be happy.

Please let me know if I miss one step or if you have faced any issues trying this.

chrome-native-messaging-java's People

Contributors

ulymarins avatar mardeni avatar

Watchers

 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.