sc_auth(8) BSD System Manager's Manual sc_auth(8)NAME
sc_auth -- smart card authorization setup script
sc_auth accept [-v] [-u user] [-d domain] [-k keyname]
sc_auth accept [-v] [-u user] [-d domain] -h hash
sc_auth remove [-v] [-u user] [-d domain]
sc_auth hash [-k keyname]
sc_auth list [-v] [-u user] [-d domain]
sc_auth configures a local user account to permit authentication using a supported smart card. Authentication is via asymmetric key (also
known as public-key) encryption. sc_auth works with signing keys, but not encryption keys.
sc_auth can perform the following actions:
accept Associate a user with a public key on a card. The key to use can be specified either by its name or its hash.
remove Remove all public keys associated with a user.
hash Print the hashes for all keys on all inserted cards.
list List all public keys associated with a user.
OPTIONS -u user Specifies the user whose account is to be modified
Specifies the directory domain containing the user account
Specifies a public key by its name
-h hash Specifies a public key by its hash
-v Verbose mode
sc_auth is a shell script. It is intended to be modified by administrators to suit their local environments.
sc_auth is only known to work with a local directory. Consult the script's source for some limited guidance to using remote directories.
sc_auth hash might display the hashes of encryption keys as well as signing keys, even though sc_auth accept does not work with encryption
MacOSX December 11, 2006 MacOSX
Check Out this Related Man Page
CRYPTOFLEX-TOOL(1) OpenSC tools CRYPTOFLEX-TOOL(1)NAME
cryptoflex-tool - utility for manipulating Schlumberger Cryptoflex data structures
cryptoflex-tool is used to manipulate PKCS data structures on Schlumberger Cryptoflex smart cards. Users can create, list and read PINs and
keys stored on the smart card. User PIN authentication is performed for those operations that require it.
OPTIONS --verify-pin, -V
Verifies CHV1 before issuing commands
Lists all keys stored in a public key file
--create-key-files arg, -c arg
Creates new RSA key files for arg keys
--create-pin-files id, -P id
Creates new PIN file for CHVid
Generate a new RSA key pair
Reads a public key from the card, allowing the user to extract and store or use the public key
--key-num num, -k num
Specifies the key number to operate on. The default is key number 1.
--app-df num, -a num
Specifies the DF to operate in
--prkey-file id, -p id
Specifies the private key file id, id, to use
--pubkey-file id, -u id
Specifies the public key file id, id, to use
--exponent exp, -e exp
Specifies the RSA exponent, exp, to use in key generation. The default value is 3.
--modulus-length length, -m length
Specifies the modulus length to use in key generation. The default value is 1024.
--reader num, -r num
Forces cryptoflex-tool to use reader number num for operations. The default is to use reader number 0, the first reader in the system.
Causes cryptoflex-tool to be more verbose. Specify this flag several times to enable debug output in the opensc library.
SEE ALSO pkcs15-tool(1)opensc 06/03/2012 CRYPTOFLEX-TOOL(1)
I have public keys authentication set up already on my system, to connect to another team's system. What I'm trying to do is to write a script that connects to the customer's box, changes to a certain directory, and then changes the permissions of the files in that directory.
ssh... (4 Replies)
I am using an array to store some data (keys e.g 47975081_1215781266128), it can be assumed that it is key to other data.
I want extract data from a file based on a couple of keys (range) and store the resulting data in a variable using the following command:
sed -n... (9 Replies)
When my script is run, it will ask the user to enter some text and the user should be restricted not to enter more than 50 chars. Is there any command which I can use with "read" command? Help me please (18 Replies)
Hi there all..
How can I set keys to be disabled in a shell script menu?
So people cant escape the script with Ctrl+C or someting.
I have a menu people have to see and when they get out of the menu script they have to be logged off again.
That all works fine.
But when they Ctrl+C they just... (5 Replies)
Is there any quick way to use pull out keys that match a specific regex pattern?
$hash(123,456) = xxx;
$hash(123,457) = xxx;
$hash(123,458) = xxx;
$hash(223,459) = xxx;
I need a fast way to get all the keys that start with 123..
Meaning I should get
... (5 Replies)
need help, trying make a command where the user presses any keys and it will go to the home page, however it doesnt work, why ?
echo -p "press any key to return to main menu" menu
if ]; then
echo -p "\n"
fi (5 Replies)
I am using unix and I want to bind a key so that when I press it, text appears in the command line:
Eg: Press '=' and 'verbatim18 centres_show' appears.
Can anyone help me? I have tried as many combinations as I have found on the internet, but it just keeps saying either 'Command not... (33 Replies)
Hello. I've made a simple script which asks the user to input a hash and then runs a command that replaces the variable $hash with what the user inserted. The ting is that when the programm asks for input I can't paste anything there..! any clues?? :wall: (8 Replies)
I needed a shell script for file transfering using public/private keys for authentication.
Could you please help me out on this?
A procedure to write a shell script is enough.
Thanks in advance.
Vidya N (8 Replies)
I am attempting to write a script that will pull out NTLM hashes from a text file that contains about 500,000 lines of data. Not all accounts contain hashes and I only need the ones that do contain hashes.
Here is a sample of what the data looks like:
There are thousands of other lines in... (6 Replies)
I am running a shell script to backup (transfer) files to a networked External HDD. Even though the public key has been added it still asks for the password before starting the transfer.
Thanks in advance. (8 Replies)
What tool is used to generate public and private keys for SCP?
Do you have an example script that generates these keys, puts them in files and then another example script that references them from SCP?
Thanks, (9 Replies)
This Poll/thread is for views of all forum user regarding following point:
There are many people in this forum who are actually not actually working on *NIX(admin or real scripting/automation part) but they are/have learnt scripting and trying to help/guide/advice/sharing... (11 Replies)
I am working on PGP encryption. I am getting public keys from some file.
One of the key has dollar sign in it "$" Example: "abc$123"
echo 'passphrase='$passphrase --> Giving correct value abc$123
But if I use $passphrase in PGP command getting Invalid passphrase error.
If I... (10 Replies)