Yubikey, Smart Cards, OpenSC and GnuPG are pain in the ass to get working. Those snippets here sould help alleviate pain.
To reset and disable not used modes on Yubikey you need the ykman
program
You can install it using those commands
# How to determine if a bash variable is empty? | |
# A variable in bash (and any POSIX-compatible shell) can be in one of three states: | |
# | |
# unset | |
# set to the empty string | |
# set to a non-empty string | |
# Most of the time you only need to know if a variable is set to a non-empty string, but occasionally it's important to distinguish between unset and set # to the empty string. | |
# |
Yubikey, Smart Cards, OpenSC and GnuPG are pain in the ass to get working. Those snippets here sould help alleviate pain.
To reset and disable not used modes on Yubikey you need the ykman
program
You can install it using those commands
#!/bin/bash | |
# Retrieves image configuration using | |
# private registries without authentication | |
set -o errexit | |
# Address of the registry that we'll be | |
# performing the inspections against. | |
# This is necessary as the arguments we |