summaryrefslogtreecommitdiff
path: root/completions/openssl
diff options
context:
space:
mode:
Diffstat (limited to 'completions/openssl')
-rw-r--r--completions/openssl37
1 files changed, 31 insertions, 6 deletions
diff --git a/completions/openssl b/completions/openssl
index 57476848..73e56a44 100644
--- a/completions/openssl
+++ b/completions/openssl
@@ -50,7 +50,7 @@ _openssl()
des des-cbc des-cfb des-ecb des-ede des-ede-cbc des-ede-cfb des-ede-ofb
des-ede3 des-ede3-cbc des-ede3-cfb des-ede3-ofb des-ofb des3 desx rc2
rc2-40-cbc rc2-64-cbc rc2-cbc rc2-cfb rc2-ecb rc2-ofb rc4 rc4-40
- sha224 sha256 sha384 sha512'
+ sha224 sha256 sha384 sha512 genpkey pkey pkeyparam pkeyutl'
if [[ $cword -eq 1 ]]; then
COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
@@ -59,9 +59,9 @@ _openssl()
case $prev in
-CA|-CAfile|-CAkey|-CAserial|-cert|-certfile|-config|-content| \
-dcert|-dkey|-dhparam|-extfile|-in|-inkey|-kfile|-key|-keyout| \
- -out|-oid|-prvrify|-rand|-recip|-revoke|-sess_in|-sess_out| \
- -spkac|-sign|-signkey|-signer|-signature|-ss_cert|-untrusted| \
- -verify)
+ -out|-oid|-paramfile|-peerkey|-prvrify|-rand|-recip|-revoke| \
+ -sess_in|-sess_out|-spkac|-sigfile|-sign|-signkey|-signer| \
+ -signature|-ss_cert|-untrusted|-verify)
_filedir
return
;;
@@ -74,7 +74,7 @@ _openssl()
return
;;
-inform|-outform|-keyform|-certform|-CAform|-CAkeyform|-dkeyform|\
- -dcertform)
+ -dcertform|-peerform)
formats='DER PEM'
case $command in
x509)
@@ -83,12 +83,15 @@ _openssl()
smime)
formats+=" SMIME"
;;
+ pkeyutl)
+ formats+=" ENGINE"
+ ;;
esac
COMPREPLY=( $( compgen -W "$formats" -- "$cur" ) )
return
;;
-connect)
- _known_hosts_real "$cur"
+ _known_hosts_real -- "$cur"
return
;;
-starttls)
@@ -100,6 +103,10 @@ _openssl()
-- "$cur" ) )
return
;;
+ -kdf)
+ COMPREPLY=( $( compgen -W 'TLS1-PRF HKDF' -- "$cur" ) )
+ return
+ ;;
esac
if [[ "$cur" == -* ]]; then
@@ -151,6 +158,10 @@ _openssl()
gendsa)
options='-out -des -des3 -idea -rand'
;;
+ genpkey)
+ options='-out -outform -pass -cipher -engine -paramfile
+ -algorithm -pkeyopt -genparam -text'
+ ;;
genrsa)
options='-out -passout -des -des3 -idea -f4 -3 -rand'
;;
@@ -158,6 +169,20 @@ _openssl()
options='-inform -outform -in -out -print_certs -text
-noout'
;;
+ pkey)
+ options='-inform -outform -in -passin -out -passout
+ -traditional -cipher -text -text_pub -noout -pubin
+ -pubout -engine'
+ ;;
+ pkeyparam)
+ options='-in -out -text -noout -engine'
+ ;;
+ pkeyutl)
+ options='-in -out -sigfile -inkey -keyform -passin -peerkey
+ -peerform -pubin -certin -rev -sign -verify
+ -verifyrecover -encrypt -decrypt -derive -kdf -kdflen
+ -pkeyopt -hexdump -asn1parse -engine -engine_impl'
+ ;;
rand)
options='-out -rand -base64'
;;