An open API service indexing awesome lists of open source software.

https://github.com/boberito/sc_menu

Simple smartcard Menu item
https://github.com/boberito/sc_menu

cryptotokenkit macadmin macos piv smartcards swift

Last synced: about 1 month ago
JSON representation

Simple smartcard Menu item

Awesome Lists containing this project

README

          

SC Menu

A lightweight menu application for viewing PIV based smartcards.

![macOS 3+](https://img.shields.io/badge/macOS-13%2B-blue?logo=apple)
![Swift 5](https://img.shields.io/badge/Swift-5-red?logo=swift)
![License](https://img.shields.io/badge/License-MIT-green)

# sc_menu
Simple smartcard Menu item

Shows a green smartcard icon when the card is inserted. Shows a blank smartcard icon when the card is not inserted. It also allows you to view the certificates on the smartcard.

![card in](in.png "Title")
![card out](out.png "Title")

![cert menu](view.png "View")

![locked](locked.png "Locked")

![additional info](additionalInfo.png "Additional Info")

![preferences window](prefs.png "Preferences Window")
If you want to disallow user's from being prompted to update SC Menu or have the ability to check for updates.

SC Menu can be registered and unregistered to load at login

`./SC\ Menu.app/Contents/MacOS/SC\ Menu --register`
* Adds to Login Items

`./SC\ Menu.app/Contents/MacOS/SC\ Menu --unregister`
* Removes from Login Items

SC Menu can be configured by Configuration Profile deployed by your MDM.

**Domain** `com.ttinc.sc-menu`

`disableUpdates` - **Type: Boolean**\
Acceptable Value: **true** or **false**\
Disables "Check for Updates" button and disables the auto-update check on launch.

`showNotifications` - **Type: Boolean**\
Acceptable Value: **true** or **false**\
When mixed with the Notifications payload, it will lock notifications on or off.

`run_on_insert` - **Type: Boolean**\
Acceptable Value: **true** or **false**\
Enables or Disables the ability to run a script on smartcard insertion.

`run_on_insert_script_path` - **Type: String**\
Acceptable Value: **Path to a script**\
POSIX path to a script to run on smartcard insert.

`run_on_removal` - **Type: Boolean**\
Acceptable Value: **true** or **false**\
Enables or Disables the ability to run a script on smartcard removal.

`run_on_removal_script_path` - **Type String**\
Acceptable Value: **Path to a script**\
POSIX path to a script to run on smartcard removal.

`DaysToExpiration` - **Type Integer**\
Acceptable Value: **Integer numbers**\
Sets the value on check for days to notify on certficate expiration. Default is 30 days.

Example mobileconfig
```

PayloadContent


PayloadIdentifier
com.ttinc.sc-menu.26F7424C-FEF3-4E94-8E78-2673B2B8CDD3
PayloadType
com.ttinc.sc-menu
PayloadUUID
26F7424C-FEF3-4E94-8E78-2673B2B8CDD3
PayloadVersion
1
disableUpdates

run_on_insert

run_on_insert_script_path
/Users/Shared/insert-piv.sh
run_on_removal

run_on_removal_script_path
/Users/Shared/myscript.sh
show_notifications

DaysToExpiration
45


PayloadDescription
Disables Updates for SC Menu
PayloadDisplayName
SC Menu Disable Updates
PayloadIdentifier
com.ttinc.sc-menu
PayloadOrganization
BOB
PayloadScope
System
PayloadType
Configuration
PayloadUUID
1BBD23DE-7ED7-45DF-8126-5085A681ED83
PayloadVersion
1

```