mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-06 16:36:16 +08:00
35 lines
625 B
Bash
Executable File
35 lines
625 B
Bash
Executable File
#!/bin/bash -x
|
|
# Copyright (c) 2014 - 2018 The GmSSL Project. All rights reserved.
|
|
|
|
gmssl=gmssl
|
|
|
|
echo "SSL/TLS Cipher Suites:"
|
|
$gmssl ciphers
|
|
echo
|
|
$gmssl ciphers -v
|
|
echo
|
|
$gmssl ciphers -V
|
|
echo
|
|
|
|
# show detailed information of a cipher suite
|
|
$gmssl ciphers -V SM2-WITH-SMS4-SM3
|
|
|
|
# show if the specified cipher is supported
|
|
$gmssl ciphers -s -tls1 SM2-WITH-SMS4-SM3
|
|
|
|
echo "Supported Cipher Suites:"
|
|
$gmssl ciphers -s
|
|
echo
|
|
|
|
echo "TLS 1.2 Cipher Suites:"
|
|
$gmssl ciphers -tls1_2
|
|
echo
|
|
|
|
echo "PSK (Pre-Shared Key) Cipher Suites:"
|
|
$gmssl ciphers -psk
|
|
echo
|
|
|
|
echo "SRP (Secure Remote Password) Cipher Suites:"
|
|
$gmssl ciphers -srp
|
|
echo
|