Coder Social home page Coder Social logo

posix_cac's Introduction

POSIX_CAC

Introduction

This is an alternative to linux_cac that allows for the configuration of a Common Access Card (CAC). This script avoids bashisms to conform to the POSIX standard. The script gives the option for several different PKCS11 modules. opensc is the recommended module as it is actively maintained and supported on more systems.

Warning Currently snap packaged browsers do not support adding PKCS11 modules (Ex. Firefox on Ubuntu). If the script sees you are currently using a snap browser it will not continue. This can be fixed by removing that package and installing a non snap version of your browser (Install Firefox on Linux).

Usage

  1. Download smartcard.sh
  2. sudo ./smartcard.sh
  3. Choose the options that work best for your system.

Supported Systems

Package Managers: (apt, pacman, yum, dnf, zypper)

Distribution Versions Browsers PKCS11 Modules
Debian 11 Firefox, Chrome opensc
Ubuntu 18.04 LTS Firefox, Chrome opensc, cackey
20.04 LTS Firefox, Chrome opensc, cackey
22.04 LTS Firefox(Non Snap), Chrome opensc
Manjaro 22.0+ Firefox, Chrome opensc
Fedora 37.0+ Firefox, Chrome opensc
openSUSE Tumbleweed Firefox, Chrome opensc, coolkey, cackey

Contribute

Code contributions are welcome! Please commit any pull requests against the main branch.

References

posix_cac's People

Contributors

jacobfinton avatar

Stargazers

Roland Thomas Jr avatar  avatar  avatar  avatar  avatar  avatar  avatar Jon S Hall avatar Andrés Alejos avatar

Watchers

 avatar

posix_cac's Issues

Adding and Deleting PKCS11 Modules using modutil

Is your feature request related to a problem? Please describe.
N/A

Describe the solution you'd like
Update the script to use modutil instead of printf on pkcs11.txt files. This will make the codebase smaller and would allow a user to change pkcs modules much easier.

Describe alternatives you've considered

Additional context
Ensure that your web service is taken offline (stopped, disabled, etc.) while performing these steps and ensure no concurrent access to the NSS database by other processes (such as a browser). Doing so may corrupt the NSS database or result in improper usage of these certificates.

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.