ChromeCAC makes it easy and secure to sign data with smart cards using Google Chrome.
ChromeCAC is a work in progress, and is not yet ready for use!
ChromeCAC is made up of 3 parts:
- the chrome extension
- the native app that communicates with the chrome extension
- the cacbridge.js website code
At this time, setup is heavily manual. Automatic installers will be created further into development.
<head>
...
<script src="cacbridge.js"></script>
...
</head>
Coming soon
require(['cacbridge'], function (CAC) {
console.log(CAC)
})
In Google Chrome, go to Settings -> Extensions and click Load Unpacked Extension. Load the ChromeExtension folder.
In the loaded extension's information, copy for the ID.
Follow the manifest instructions for your OS here.
In the manifest, be sure to change chrome-extension://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/
to chrome-extension://{ID}/
Build the native app of your choice, ex: ChromeCAC.NET
Place the built EXE in the location referenced from your manifest.
Sign a payload by calling CAC.sign(...)
CAC.sign("this string will be signed", function success (signatureInfo) {
// Signed successfully
// Passes signatureInfo, see below
console.log("Signature: " + data.signature)
}, function fail () {
// Failed to sign
console.log("Failed to sign data!")
})
A JavaScript object containing information about the signed data. This is passed to the success callback in CAC.sign
Property | Type | Description |
---|---|---|
signature | string | The signature of the signed string |
publicKey | string | The public key used to verify the certificate |
fullSig | string | The full signature, containing the public key and signature to be easily verified |
Examples of signature verification are coming soon to CACBridge.
CACBridge is dedicated to Ramone Beharrie
An individual that our team was very close to and enjoyed our experience together.
I don't play games, I make them