Movatterモバイル変換


[0]ホーム

URL:


Skip Navigation Links
Exit Print View
Link to oracle.comman pages section 1M: System Administration Commands    Oracle Solaris 11 Information Library
Oracle Technology Network
Library
PDF
Print View
Feedback
search filter icon
search icon
 Search Scope:

Document Information

Preface

Introduction

System Administration Commands - Part 1

6to4relay(1M)

acct(1M)

acctadm(1M)

acctcms(1M)

acctcon1(1M)

acctcon(1M)

acctcon2(1M)

acctdisk(1M)

acctdusg(1M)

acctmerg(1M)

accton(1M)

acctprc1(1M)

acctprc(1M)

acctprc2(1M)

acctsh(1M)

acctwtmp(1M)

acpihpd(1M)

adbgen(1M)

add_allocatable(1M)

addbadsec(1M)

add_drv(1M)

arp(1M)

asradm(1M)

asr-notify(1M)

atohexlabel(1M)

audit(1M)

auditconfig(1M)

auditd(1M)

auditrecord(1M)

auditreduce(1M)

auditstat(1M)

audit_warn(1M)

automount(1M)

automountd(1M)

autopush(1M)

bart(1M)

beadm(1M)

boot(1M)

bootadm(1M)

bootconfchk(1M)

bootparamd(1M)

busstat(1M)

captoinfo(1M)

catman(1M)

cfgadm(1M)

cfgadm_ac(1M)

cfgadm_cardbus(1M)

cfgadm_fp(1M)

cfgadm_ib(1M)

cfgadm_pci(1M)

cfgadm_sata(1M)

cfgadm_sbd(1M)

cfgadm_scsi(1M)

cfgadm_sdcard(1M)

cfgadm_shp(1M)

cfgadm_sysctrl(1M)

cfgadm_usb(1M)

chargefee(1M)

chat(1M)

check-hostname(1M)

check-permissions(1M)

chk_encodings(1M)

chroot(1M)

cimworkshop(1M)

ckpacct(1M)

clear_locks(1M)

clinfo(1M)

closewtmp(1M)

clri(1M)

comsat(1M)

consadm(1m)

console-reset(1M)

conv_lp(1M)

conv_lpd(1M)

coreadm(1M)

cpustat(1M)

croinfo(1M)

cron(1M)

cryptoadm(1M)

cvcd(1M)

datadm(1M)

dcopy(1M)

dcs(1M)

dd(1M)

ddu(1M)

ddu-text(1M)

devchassisd(1M)

devfsadm(1M)

devfsadmd(1M)

device_allocate(1M)

device_remap(1M)

devinfo(1M)

devlinks(1M)

devnm(1M)

devprop(1M)

df(1M)

dfmounts(1M)

dfmounts_nfs(1M)

dfshares(1M)

dfshares_nfs(1M)

df_ufs(1M)

dhcpagent(1M)

dhcpconfig(1M)

dhcpmgr(1M)

dhtadm(1M)

dig(1M)

directoryserver(1M)

diskinfo(1M)

disks(1M)

diskscan(1M)

dispadmin(1M)

dladm(1M)

dlmgmtd(1M)

dlstat(1M)

dmesg(1M)

dminfo(1M)

dns-sd(1M)

dnssec-dsfromkey(1M)

dnssec-keyfromlabel(1M)

dnssec-keygen(1M)

dnssec-makekeyset(1M)

dnssec-signkey(1M)

dnssec-signzone(1M)

dodisk(1M)

domainname(1M)

drd(1M)

drvconfig(1M)

dsbitmap(1M)

dscfg(1M)

dscfgadm(1M)

dscfglockd(1M)

dsstat(1M)

dsvclockd(1M)

dtrace(1M)

dumpadm(1M)

editmap(1M)

edquota(1M)

eeprom(1M)

efdaemon(1M)

embedded_su(1M)

etrn(1M)

fbconfig(1M)

fbconf_xorg(1M)

fcadm(1M)

fcinfo(1M)

fdetach(1M)

fdisk(1M)

ff(1M)

ff_ufs(1M)

fingerd(1M)

fiocompress(1M)

flowadm(1M)

flowstat(1M)

fmadm(1M)

fmd(1M)

fmdump(1M)

fmstat(1M)

fmthard(1M)

format(1M)

fpsd(1M)

fruadm(1M)

fsck(1M)

fsck_pcfs(1M)

fsck_udfs(1M)

fsck_ufs(1M)

fsdb(1M)

fsdb_udfs(1M)

fsdb_ufs(1M)

fsirand(1M)

fssnap(1M)

fssnap_ufs(1M)

fsstat(1M)

fstyp(1M)

fuser(1M)

fwflash(1M)

fwtmp(1M)

getdevpolicy(1M)

getent(1M)

gettable(1M)

getty(1M)

gkadmin(1M)

groupadd(1M)

groupdel(1M)

groupmod(1M)

growfs(1M)

grpck(1M)

gsscred(1M)

gssd(1M)

hald(1M)

hal-device(1M)

hal-fdi-validate(1M)

hal-find(1M)

hal-find-by-capability(1M)

hal-find-by-property(1M)

hal-get-property(1M)

hal-set-property(1M)

halt(1M)

hextoalabel(1M)

host(1M)

hostconfig(1M)

hotplug(1M)

hotplugd(1M)

htable(1M)

ickey(1M)

id(1M)

idmap(1M)

idmapd(1M)

idsconfig(1M)

ifconfig(1M)

if_mpadm(1M)

ifparse(1M)

iiadm(1M)

iicpbmp(1M)

iicpshd(1M)

ikeadm(1M)

ikecert(1M)

ilbadm(1M)

ilbd(1M)

ilomconfig(1M)

imqadmin(1M)

imqbrokerd(1M)

imqcmd(1M)

imqdbmgr(1M)

imqkeytool(1M)

imqobjmgr(1M)

imqusermgr(1M)

in.chargend(1M)

in.comsat(1M)

in.daytimed(1M)

in.dhcpd(1M)

in.discardd(1M)

in.echod(1M)

inetadm(1M)

inetconv(1M)

inetd(1M)

in.fingerd(1M)

infocmp(1M)

in.iked(1M)

init(1M)

init.sma(1M)

init.wbem(1M)

inityp2l(1M)

in.lpd(1M)

in.mpathd(1M)

in.named(1M)

in.ndpd(1M)

in.rarpd(1M)

in.rdisc(1M)

in.rexecd(1M)

in.ripngd(1M)

in.rlogind(1M)

in.routed(1M)

in.rshd(1M)

in.rwhod(1M)

install(1M)

installboot(1M)

installf(1M)

installgrub(1M)

in.stdiscover(1M)

in.stlisten(1M)

in.talkd(1M)

in.telnetd(1M)

in.tftpd(1M)

in.timed(1M)

intrd(1M)

intrstat(1M)

in.uucpd(1M)

iostat(1M)

ipaddrsel(1M)

ipadm(1M)

ipf(1M)

ipfs(1M)

ipfstat(1M)

ipmgmtd(1M)

ipmon(1M)

ipmpstat(1M)

ipnat(1M)

ippool(1M)

ipqosconf(1M)

ipsecalgs(1M)

ipsecconf(1M)

ipseckey(1M)

iscsiadm(1M)

isns(1M)

isnsadm(1M)

itadm(1M)

itu(1M)

k5srvutil(1M)

kadb(1M)

kadmin(1M)

kadmind(1M)

kadmin.local(1M)

kcfd(1M)

kclient(1M)

kdb5_ldap_util(1M)

kdb5_util(1M)

kdcmgr(1M)

kernel(1M)

keyserv(1M)

killall(1M)

kmscfg(1M)

kprop(1M)

kpropd(1M)

kproplog(1M)

krb5kdc(1M)

ksslcfg(1M)

kstat(1M)

ktkt_warnd(1M)

labeld(1M)

labelit(1M)

labelit_hsfs(1M)

labelit_udfs(1M)

labelit_ufs(1M)

lastlogin(1M)

latencytop(1M)

ldapaddent(1M)

ldap_cachemgr(1M)

ldapclient(1M)

ldmad(1M)

link(1M)

llc2_loop(1M)

lldpadm(1M)

lldpd(1M)

lms(1M)

localectr(1M)

locator(1M)

lockd(1M)

lockfs(1M)

lockstat(1M)

lofiadm(1M)

logadm(1M)

logins(1M)

lpget(1M)

lpset(1M)

luxadm(1M)

System Administration Commands - Part 2

System Administration Commands - Part 3

cryptoadm

- cryptographic framework administration

Synopsis

cryptoadm list [-mpv] [provider=provider-name]      [mechanism=mechanism-list]
cryptoadm disable     provider=provider-name mechanism=mechanism-list | random | all
cryptoadm enable     provider=provider-name mechanism=mechanism-list | random | all
cryptoadm install provider=provider-name
cryptoadm install provider=provider-name      [mechanism=mechanism-list]
cryptoadm uninstall provider=provider-name
cryptoadm unload provider=provider-name
cryptoadm disable fips-140
cryptoadm enable fips-140
cryptoadm list fips-140
cryptoadm refresh
cryptoadm start
cryptoadm stop
cryptoadm--help

Description

Thecryptoadm utility displays cryptographic provider information for a system, configures themechanism policy for each provider, and installs or uninstalls a cryptographic provider.The cryptographic framework supports three types of providers: a user-level provider (a PKCS11shared library), a kernel software provider (a loadable kernel software module), anda kernel hardware provider (a cryptographic hardware device).

For kernel software providers, thecryptoadm utility provides theunload subcommand. Thissubcommand instructs the kernel to unload a kernel software providers.

For the cryptographic framework's metaslot, thecryptoadm utility provides subcommands to enableand disable the metaslot's features, list metaslot's configuration, specify alternate persistent objectstorage, and configure the metaslot's mechanism policy.

Thecryptoadm utility provides subcommands to enable and disable FIPS-140 mode inthe Cryptographic Framework. It also provides alist subcommand to display thecurrent status of FIPS-140 mode.

Administrators will find it useful to usesyslog facilities (seesyslogd(1M) andlogadm(1M)) to maintain the cryptographic subsystem. Logging can be especially useful underthe following circumstances:

With the exception of the subcommands or options listed below, thecryptoadmcommand needs to be run by a privileged user.

Options

Thecryptoadm utility has the various combinations of subcommands and options shownbelow.

cryptoadmlist

Display the list of installed providers.

cryptoadmlist metaslot

Display the system-wide configuration for metaslot.

cryptoadmlist-m[ provider=provider-name | metaslot ]

Display a list of mechanisms that can be used with the installed providers or metaslot. If a provider is specified, display the name of the specified provider and the mechanism list that can be used with that provider. If the metaslot keyword is specified, display the list of mechanisms that can be used with metaslot.

cryptoadmlist-p[ provider=provider-name | metaslot ]

Display the mechanism policy (that is, which mechanisms are available and which are not) for the installed providers. Also display the provider feature policy or metaslot. If a provider is specified, display the name of the provider with the mechanism policy enforced on it only. If the metaslot keyword is specified, display the mechanism policy enforced on the metaslot.

cryptoadmlist-vprovider=provider-name | metaslot

Display details about the specified provider if a provider is specified. If the metaslot keyword is specified, display details about the metaslot.

-v

For the variouslist subcommands described above (except forlist-p), the-v (verbose) option provides details about providers, mechanisms and slots.

cryptoadmdisable provider=provider-name
[ mechanism=mechanism-list |provider-feature... |all ]

Disable the mechanisms or provider features specified for the provider. See OPERANDS for a description ofmechanism,provider-feature, and theall keyword.

cryptoadm[ mechanism=mechanism-list ] [ auto-key-migrate ]

Disable the metaslot feature in the cryptographic framework or disable some of metaslot's features. If no operand is specified, this command disables the metaslot feature in the cryptographic framework. If a list of mechanisms is specified, disable mechanisms specified for metaslot. If all mechanisms are disabled for metaslot, the metaslot will be disabled. See OPERANDS for a description of mechanism. If theauto-key-migrate keyword is specified, it disables the migration of sensitive token objects to other slots even if it is necessary for performing crypto operations. See OPERANDS for a description ofauto-key-migrate.

cryptoadmenable provider=provider-name
[ mechanism=mechanism-list |provider-feature... |all ]

Enable the mechanisms or provider features specified for the provider. See OPERANDS for a description ofmechanism,provider-feature, and theall keyword.

cryptoadmenable metaslot [ mechanism=mechanism-list ] |
[ [ token=token-label] [ slot=slot-description] |
default-keystore ] | [ auto-key-migrate ]

If no operand is specified, this command enables the metaslot feature in the cryptographic framework. If a list of mechanisms is specified, it enables only the list of specified mechanisms for metaslot. Iftoken-label is specified, the specified token will be used as the persistent object store. If theslot-description is specified, the specified slot will be used as the persistent object store. If both thetoken-label and theslot-description are specified, the provider with the matching token label and slot description is used as the persistent object store. If thedefault-keystore keyword is specified, metaslot will use the default persistent object store. If theauto-key-migrate keyword is specified, sensitive token objects will automatically migrate to other slots as needed to complete certain crypto operations. See OPERANDS for a description of mechanism, token, slot,default-keystore, andauto-key-migrate.

cryptoadminstall provider=provider-name

Install a user-level provider into the system. Theprovider operand must be an absolute pathname of the corresponding shared library. If there are both 32–bit and 64–bit versions for a library, this command should be run once only with the path name containing$ISA. Note that$ISA is not a reference to an environment variable. Note also that$ISA must be quoted (with single quotes [for example,'$ISA']) or the$ must be escaped to keep it from being incorrectly expanded by the shell. The user-level framework expands$ISA to an empty string or an architecture-specific directory, for example,sparcv9.

The preferred way of installing a user-level provider is to build a package for the provider. For more information, see theSolaris Security for Developer's Guide.

cryptoadminstall provider=provider-name
mechanism=mechanism-list

Install a kernel software provider into the system. The provider should contain the base name only. Themechanism-list operand specifies the complete list of mechanisms to be supported by this provider.

The preferred way of installing a kernel software provider is to build a package for providers. For more information, see theSolaris Security for Developer's Guide.

cryptoadmuninstall provider=provider-name

Uninstall the specifiedprovider and the associated mechanism policy from the system. This subcommand applies only to a user-level provider or a kernel software provider.

cryptoadmunload provider=provider-name

Unload the kernel software module specified byprovider.

cryptoadmdisable fips-140

Disable FIPS-140 mode in the Cryptographic Framework and for hardware providers.

cryptoadmenable fips-140

Enable FIPS-140 mode in the Cryptographic Framework and for hardware providers. This subcommand does not disable the non-FIPS approved algorithms from the user-levelpkcs11_softtoken library and the kernel software providers. It is the consumers of the framework that are responsible for using only FIPS-approved algorithms.

Upon completion of this subcommand, a message is issued to inform the administrator that any plugins added that are not within the boundary might invalidate FIPS compliance and to check the Security Policies for those plugins.

The system will require a reboot to perform Power-Up Self Tests that include a cryptographic algorithm test and a software integrity test.

cryptoadmlist fips-140

Display the current setting of FIPS-140 mode in the Cryptographic Framework and for hardware providers. The status of FIPS-140 mode isenabled ordisabled. The default FIPS-140 mode isdisabled.

cryptoadmrefresh
cryptoadmstart
cryptoadmstop

Private interfaces for use bysmf(5), these must not be used directly.

cryptoadm-help

Display the command usage.

Operands

provider=provider-name

A user-level provider (a PKCS11 shared library), a kernel software provider (a loadable kernel software module), or a kernel hardware provider (a cryptographic hardware device).

A valid value of theprovider operand is one entry from the output of a command of the form:cryptoadmlist. Aprovider operand for a user-level provider is an absolute pathname of the corresponding shared library. Aprovider operand for a kernel software provider contains a base name only. Aprovider operand for a kernel hardware provider is in a “name/number” form.

mechanism=mechanism-list

A comma separated list of one or more PKCS #11 mechanisms. A process for implementing a cryptographic operation as defined in PKCS #11 specification. You can substituteall formechanism-list, to specify all mechanisms on a provider. See the discussion of theall keyword, below.

provider-feature

A cryptographic framework feature for the given provider. Currently onlyrandom is accepted as a feature. For a user-level provider, disabling the random feature makes the PKCS #11 routinesC_GenerateRandom andC_SeedRandom unavailable from the provider. For a kernel provider, disabling the random feature prevents/dev/random from gathering random numbers from the provider.

all

The keywordall can be used with with thedisable andenable subcommands to operate on all provider features.

token=token-label

The label of a token in one of the providers in the cryptographic framework.

A valid value of the token operand is an item displayed under “Token Label” from the output of the commandcryptoadm list-v.

slot=slot-description

The description of a slot in one of the providers in the cryptographic framework.

A valid value of the slot operand is an item displayed under “Description” from the output of the commandcryptoadm list-v.

default-keystore

The keyworddefault-keystore is valid only for metaslot. Specify this keyword to set the persistent object store for metaslot back to using the default store.

auto-key-migrate

The keyword auto-key-migrate is valid only for metaslot. Specify this keyword to configure whether metaslot is allowed to move sensitive token objects from the token object slot to other slots for performing cryptographic operations.

The keywordall can be used in two ways with thedisableandenable subcommands:

Examples

Example 1 Display List of Providers Installed in System

The following command displays a list of all installed providers:

example%cryptoadm listuser-level providers:/usr/lib/security/$ISA/pkcs11_kernel.so/usr/lib/security/$ISA/pkcs11_softtoken.so/opt/lib/libcryptoki.so.1/opt/system/core-osonn/lib/$ISA/libpkcs11.so.1  kernel software providers:    des    aes    bfish    sha1    md5kernel hardware providers:    dca/0

Example 2 Display Mechanism List formd5 Provider

The following command is a variation of thelist subcommand:

example%cryptoadm list -m provider=md5md5: CKM_MD5,CKM_MD5_HMAC,CKM_MD5_HMAC_GENERAL

Example 3 Disable Specific Mechanisms for Kernel Software Provider

The following command disables mechanismsCKM_DES3_ECB andCKM_DES3_CBC for the kernel softwareproviderdes:

example#cryptoadm disable provider=des

Example 4 Display Mechanism Policy for a Provider

The following command displays the mechanism policy for thedes provider:

example%cryptoadm list -p provider=desdes: All mechanisms are enabled, except CKM_DES3_ECB, CKM_DES3_CBC

Example 5 Enable Specific Mechanism for a Provider

The following command enables theCKM_DES3_ECB mechanism for the kernel software providerdes:

example#cryptoadm enable provider=des mechanism=CKM_DES3_ECB

Example 6 Install User-Level Provider

The following command installs a user-level provider:

example#cryptoadm install provider=/opt/lib/libcryptoki.so.1

Example 7 Install User-Level Provider That Contains 32– and 64–bit Versions

The following command installs a user-level provider that contains both 32–bit and64–bit versions:

example#cryptoadm install \provider=/opt/system/core-osonn/lib/'$ISA'/libpkcs11.so.1

Example 8 Uninstall a Provider

The following command uninstalls themd5 provider:

example#cryptoadm uninstall provider=md5

Example 9 Disable metaslot

The following command disables the metaslot feature in the cryptographic framework.

example#cryptoadm disable metaslot

Example 10 Specify metaslot to Use Specified Token as Persistent Object Store

The following command specifies that metaslot use the Venus token as thepersistent object store.

example#cryptoadm enable metaslot token="SUNW,venus"

Exit Status

The following exit values are returned:

0

Successful completion.

>0

An error occurred.

Attributes

Seeattributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/core-os
Interface Stability
See below.

Thestart,stop, andrefresh options are Private interfaces. All other optionsand the utility name are Committed.

See Also

logadm(1M),svcadm(1M),syslogd(1M),libpkcs11(3LIB),exec_attr(4),prof_attr(4),attributes(5),smf(5),random(7D)

Oracle Solaris Administration: Security Services

Solaris Security for Developer's Guide

Notes

If a hardware provider's policy was made explicitly (that is, some ofits mechanisms were disabled) and the hardware provider has been detached, thepolicy of this hardware provider is still listed.

cryptoadm assumes that, minimally, a 32–bit shared object is delivered for eachuser-level provider. If both a 32–bit and 64–bit shared object are delivered,the two versions must provide the same functionality. The same mechanism policyapplies to both.

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices
PreviousNext

[8]ページ先頭

©2009-2025 Movatter.jp