Yubico / developers.yubico.com

Source code for generating our website
https://developers.yubico.com
53 stars 63 forks source link

content/YubiHSM2/Usage_Guides/Admin_guide.adoc audit example not working #449

Closed HRio closed 2 years ago

HRio commented 2 years ago

From the docs content/YubiHSM2/Usage_Guides/Admin_guide.adoc

yubihsm> session open 1 password
yubihsm> put authkey 0 0 "Audit auth key" all audit none $AUDIT_PASS

Test with yubihsm-shell 2.3.0 and a YubiHSM2 used for testing

yubihsm> session open 1 password
Created session 0

yubihsm> put authkey 0 0 "Audit auth key" all audit none test
Invalid argument 6: audit (c:capabilities)

Tab completion in the place of "audit" above gives this list

change-authentication-key
create-otp-aead
decrypt-oaep
decrypt-otp
decrypt-pkcs
delete-asymmetric-key
delete-authentication-key
delete-hmac-key
delete-opaque
delete-otp-aead-key
delete-template
delete-wrap-key
derive-ecdh
export-wrapped
exportable-under-wrap
generate-asymmetric-key
generate-hmac-key
generate-otp-aead-key
generate-wrap-key
get-log-entries
get-opaque
get-option
get-pseudo-random
get-template
import-wrapped
put-asymmetric-key
put-authentication-key
put-mac-key
put-opaque
put-otp-aead-key
put-template
put-wrap-key
randomize-otp-aead
reset-device
rewrap-from-otp-aead-key
rewrap-to-otp-aead-key
set-option
sign-attestation-certificate
sign-ecdsa
sign-eddsa
sign-hmac
sign-pkcs
sign-pss
sign-ssh-certificate
unwrap-data
verify-hmac
wrap-data

i.e. audit is not in the list.