用命令行检查SSL到期日期

.

0

linux命令:echo | openssl s_client -showcerts -servername google.com -connect gnupg.org:443 2>/dev/null | openssl x509 -inform pem -noout -text -text -noout pem -inform x509 openssl | 2>/dev/null gnupg.org:443 -connect google.com -servername -showcerts s_client openssl | echo echo | openssl s_client -showcerts -servername google.com -connect gnupg.org:443 2>/dev/null | openssl x509 -inform pem -noout -textrootopen.com
linux命令:echo | openssl s_client -showcerts -servername google.com -connect gnupg.org:443 2>/dev/null | openssl x509 -inform pem -noout -text -text -noout pem -inform x509 openssl | 2>/dev/null gnupg.org:443 -connect google.com -servername -showcerts s_client openssl | echo echo | openssl s_client -showcerts -servername google.com -connect gnupg.org:443 2>/dev/null | openssl x509 -inform pem -noout -textrootopen.com
wctk 2018-12-22 21:23:50
输出
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            04:8e:67:bd:aa:6a:2e:d1:97:39:c0:41:39:fe:40:d8:f6:b6
    Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, O=Let's Encrypt, CN=Let's Encrypt Authority X3
        Validity
            Not Before: Dec 15 00:55:11 2018 GMT
            Not After : Mar 15 00:55:11 2019 GMT
        Subject: CN=gnupg.org
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:c2:ed:71:6a:20:80:f4:a1:d1:13:d3:7a:1d:9e:
                    0a:46:3b:f8:91:5b:43:b1:d0:d5:4d:4a:01:02:c8:
                    2d:07:23:38:c4:69:0e:25:75:e7:9d:9e:1a:46:26:
                    d2:0d:53:20:2c:7f:fb:9b:86:92:a4:a1:d2:f0:99:
                    9d:5b:c5:5e:3f:b6:30:2c:0f:21:92:58:6a:08:da:
                    25:a3:23:4a:8e:be:72:ab:b9:47:be:7f:27:4e:eb:
                    c8:1d:ae:d7:40:44:51:74:1e:41:7d:76:ec:11:a2:
                    fe:3f:a5:89:f1:b9:77:97:03:21:a3:69:61:81:b1:
                    74:a8:32:31:47:8c:a8:ab:6d:61:c0:7e:3a:f2:61:
                    6a:62:e9:d4:e8:90:01:80:e6:7d:8f:27:9b:14:21:
                    c4:6e:88:bf:9c:97:15:4d:49:6b:a5:1c:d9:cb:72:
                    e7:fc:c1:b4:6c:e7:7c:94:04:80:cf:16:10:70:e0:
                    2e:61:ff:28:54:84:41:9b:27:f0:60:f0:d1:55:59:
                    3f:30:26:68:a9:e8:e0:25:01:66:a2:af:43:c5:b2:
                    bd:3a:72:74:28:91:82:5f:24:99:2a:26:dc:07:b5:
                    c7:0e:8b:a0:a0:b4:f3:14:55:ee:59:47:e5:05:e1:
                    34:21:03:12:b9:02:33:00:ee:45:88:b1:0c:2a:78:
                    64:9d
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Key Usage: critical
                Digital Signature, Key Encipherment
            X509v3 Extended Key Usage:
                TLS Web Server Authentication, TLS Web Client Authentication
            X509v3 Basic Constraints: critical
                CA:FALSE
            X509v3 Subject Key Identifier:
                D3:63:19:71:6E:45:F8:80:C3:D5:72:26:6C:8C:BF:D2:CE:16:6A:3B
            X509v3 Authority Key Identifier:
                keyid:A8:4A:6A:63:04:7D:DD:BA:E6:D1:39:B7:A6:45:65:EF:F3:A8:EC:A1

            Authority Information Access:
                OCSP - URI:http://ocsp.int-x3.letsencrypt.org
                CA Issuers - URI:http://cert.int-x3.letsencrypt.org/

            X509v3 Subject Alternative Name:
                DNS:gnupg.org, DNS:www.gnupg.org
            X509v3 Certificate Policies:
                Policy: 2.23.140.1.2.1
                Policy: 1.3.6.1.4.1.44947.1.1.1
                  CPS: http://cps.letsencrypt.org

            CT Precertificate SCTs:
                Signed Certificate Timestamp:
                    Version   : v1(0)
                    Log ID    : 55:81:D4:C2:16:90:36:01:4A:EA:0B:9B:57:3C:53:F0:
                                C0:E4:38:78:70:25:08:17:2F:A3:AA:1D:07:13:D3:0C
                    Timestamp : Dec 15 01:55:11.637 2018 GMT
                    Extensions: none
                    Signature : ecdsa-with-SHA256
                                30:45:02:21:00:FA:DE:EF:B2:09:AA:F5:54:5F:B6:8E:
                                37:76:9C:8E:93:1A:E9:8D:99:EF:E3:60:42:73:5D:FB:
                                0E:E4:1F:82:EA:02:20:66:9C:EB:3A:DD:D5:6A:9B:1D:
                                FA:54:29:AE:DB:5F:36:55:1C:65:20:49:D8:64:96:15:
                                7C:28:63:67:F5:1D:98
                Signed Certificate Timestamp:
                    Version   : v1(0)
                    Log ID    : 29:3C:51:96:54:C8:39:65:BA:AA:50:FC:58:07:D4:B7:
                                6F:BF:58:7A:29:72:DC:A4:C3:0C:F4:E5:45:47:F4:78
                    Timestamp : Dec 15 01:55:11.478 2018 GMT
                    Extensions: none
                    Signature : ecdsa-with-SHA256
                                30:45:02:21:00:BA:61:CD:80:11:AF:37:A7:BB:B7:25:
                                AD:1D:09:B0:92:8D:C7:46:23:C0:A0:93:2F:F5:0A:AB:
                                57:0F:3A:9F:05:02:20:1C:5D:DE:6A:A6:53:1C:EC:E3:
                                05:2D:97:1F:3E:43:89:8D:C0:06:51:8E:05:94:1B:3D:
                                81:59:6C:53:DE:6D:9F
    Signature Algorithm: sha256WithRSAEncryption
         92:a9:42:bf:9a:3b:e4:04:e3:6b:44:0e:ec:0f:61:3d:ea:70:
         9a:49:02:2a:87:4d:c6:ba:77:00:86:38:16:15:76:af:7d:e4:
         bc:84:31:c0:a9:bd:a3:c1:c2:f8:3e:ff:3b:8e:b1:87:0d:fa:
         62:c1:aa:1a:e7:cc:d7:68:db:0d:3e:73:2b:7d:ae:cb:b8:d8:
         bf:9c:a7:a0:43:52:d7:41:e5:68:f3:f3:a0:bf:0c:23:91:40:
         ce:a8:db:85:6c:13:c9:dc:73:7f:74:43:64:32:ba:72:67:f1:
         dc:90:15:aa:35:fc:54:49:ce:f0:50:58:e8:4d:2f:0f:9e:ba:
         64:ba:9a:03:49:d3:6d:52:87:c0:c2:a4:c9:3b:c8:c8:2c:00:
         1c:8b:9a:b8:f3:0e:4f:72:dc:40:53:98:a3:39:be:b5:5f:3d:
         77:62:c2:37:1d:c2:81:bc:91:7c:15:04:d8:7a:76:fd:fa:c4:
         42:d7:a4:2f:77:f0:fa:c4:f0:38:7c:e8:b0:fb:45:18:0b:cb:
         26:bd:68:28:01:57:af:6c:8c:9a:67:2f:5d:22:cb:42:f3:02:
         63:bc:b3:cc:2a:a7:a0:ff:bb:4d:1a:18:45:85:d5:b3:35:20:
         19:d1:f8:ac:78:b3:36:97:78:ae:d3:c8:9d:a7:db:24:8c:e9:
         80:48:18:11
linux命令:echo 详解

评论

相关推荐

linux命令:echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc echo echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dcrootopen.com
linux命令:echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc echo echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dcrootopen.com
.

linux命令:echo -e ${PATH//:/\\n} ${PATH//:/\\n} -e echo echo -e ${PATH//:/\\n}rootopen.com
linux命令:echo -e ${PATH//:/\\n} ${PATH//:/\\n} -e echo echo -e ${PATH//:/\\n}rootopen.com
.

at 07:30 tomorrow在第二天上午7:30调度作业,运行任何命令或脚本作为标准输入。指定时间和日期的格式相当灵活。 http://tinyurl.com/ibmdwat echo 'play alarmclock.wav 2>/dev/null' |将play alarmclock.wav命令提供给at,同时2>/dev/null导致文本输出play被丢弃

linux命令:echo 'play alarmclock.wav 2>/dev/null' | at 07:30 tomorrow tomorrow 07:30 at | 2>/dev/null' alarmclock.wav 'play echo echo 'play alarmclock.wav 2>/dev/null' | at 07:30 tomorrowrootopen.com
linux命令:echo 'play alarmclock.wav 2>/dev/null' | at 07:30 tomorrow tomorrow 07:30 at | 2>/dev/null' alarmclock.wav 'play echo echo 'play alarmclock.wav 2>/dev/null' | at 07:30 tomorrowrootopen.com
.

/macos/mojave shell脚本更改终端配置文件

linux命令:echo "tell application \"Terminal\"\n\t set its current settings of selected tab of window 1 to settings set \"$PROFILE\"\n end tell"|osascript; tell"|osascript; end \"$PROFILE\"\n set settings to 1 window of tab selected of settings current its set \"Terminal\"\n\t application "tell echo echo "tell application \"Terminal\"\n\t set its current settings of selected tab of window 1 to settings set \"$PROFILE\"\n end tell"|osascript;rootopen.com
linux命令:echo "tell application \"Terminal\"\n\t set its current settings of selected tab of window 1 to settings set \"$PROFILE\"\n end tell"|osascript; tell"|osascript; end \"$PROFILE\"\n set settings to 1 window of tab selected of settings current its set \"Terminal\"\n\t application "tell echo echo "tell application \"Terminal\"\n\t set its current settings of selected tab of window 1 to settings set \"$PROFILE\"\n end tell"|osascript;rootopen.com
.

你可以这样做for i in {1..10}; do something; done

linux命令:echo {4..-9} {4..-9} echo echo {4..-9}rootopen.com
linux命令:echo {4..-9} {4..-9} echo echo {4..-9}rootopen.com
.

首先,您需要启用sysrq接口: echo 1 > /proc/sys/kernel/sysrq echo o > /proc/sysrq-trigger halts echo b > /proc/sysrq-trigger reboots

linux命令:echo o > /proc/sysrq-trigger reboots reboots /proc/sysrq-trigger > o echo echo o > /proc/sysrq-trigger rebootsrootopen.com
linux命令:echo o > /proc/sysrq-trigger reboots reboots /proc/sysrq-trigger > o echo echo o > /proc/sysrq-trigger rebootsrootopen.com
.

测试sendmail是否已安装并正常工作

linux命令:echo "Subject: test" | /usr/lib/sendmail -v me@domain.com me@domain.com -v /usr/lib/sendmail | test" "Subject: echo echo "Subject: test" | /usr/lib/sendmail -v me@domain.comrootopen.com
linux命令:echo "Subject: test" | /usr/lib/sendmail -v me@domain.com me@domain.com -v /usr/lib/sendmail | test" "Subject: echo echo "Subject: test" | /usr/lib/sendmail -v me@domain.comrootopen.com
.

linux命令:echo boo{,,,,,,,,,,} boo{,,,,,,,,,,} echo echo boo{,,,,,,,,,,}rootopen.com
linux命令:echo boo{,,,,,,,,,,} boo{,,,,,,,,,,} echo echo boo{,,,,,,,,,,}rootopen.com
.

使用bash快捷方式生成数字序列,它与字母一起使用echo {A..H} echo {a..h},小心不要混合大小写,你可能会遇到有趣的结果: echo {z..A} z y x w v u t s r q p o n m l k j i h g f e d c b a ` _ ^ ] [ Z Y X W V U T S R Q P O N M L K J I H G F E D C B A

linux命令:echo {1..12} {1..12} echo echo {1..12}rootopen.com
linux命令:echo {1..12} {1..12} echo echo {1..12}rootopen.com
.

linux命令:echo {1..99} {1..99} echo echo {1..99}rootopen.com
linux命令:echo {1..99} {1..99} echo echo {1..99}rootopen.com
.

此命令将Python版本发送到文件,用于脚本

linux命令:echo "$(python -V 2>&1)" > file file > 2>&1)" -V "$(python echo echo "$(python -V 2>&1)" > filerootopen.com
linux命令:echo "$(python -V 2>&1)" > file file > 2>&1)" -V "$(python echo echo "$(python -V 2>&1)" > filerootopen.com
.

禁用Gradle守护程序有时可以提高构建可靠性

linux命令:echo "org.gradle.daemon=false" >> ~/.gradle/gradle.properties ~/.gradle/gradle.properties >> "org.gradle.daemon=false" echo echo "org.gradle.daemon=false" >> ~/.gradle/gradle.propertiesrootopen.com
linux命令:echo "org.gradle.daemon=false" >> ~/.gradle/gradle.properties ~/.gradle/gradle.properties >> "org.gradle.daemon=false" echo echo "org.gradle.daemon=false" >> ~/.gradle/gradle.propertiesrootopen.com
.

linux命令:echo "$(find ./ -name '*' -type f -exec wc -l {} \; | awk '{print $1}' | tr '\n' '+' | sed s/+$//g)" | bc -l -l bc | s/+$//g)" sed | '+' '\n' tr | $1}' '{print awk | \; {} -l wc -exec f -type '*' -name ./ "$(find echo echo "$(find ./ -name '*' -type f -exec wc -l {} \; | awk '{print $1}' | tr '\n' '+' | sed s/+$//g)" | bc -lrootopen.com
linux命令:echo "$(find ./ -name '*' -type f -exec wc -l {} \; | awk '{print $1}' | tr '\n' '+' | sed s/+$//g)" | bc -l -l bc | s/+$//g)" sed | '+' '\n' tr | $1}' '{print awk | \; {} -l wc -exec f -type '*' -name ./ "$(find echo echo "$(find ./ -name '*' -type f -exec wc -l {} \; | awk '{print $1}' | tr '\n' '+' | sed s/+$//g)" | bc -lrootopen.com
.

只需要使用'-'来作为“cat”的额外输入

linux命令:echo "New first line" | cat - file.txt > newfile.txt; mv newfile.txt file.txt file.txt newfile.txt mv newfile.txt; > file.txt - cat | line" first "New echo echo "New first line" | cat - file.txt > newfile.txt; mv newfile.txt file.txtrootopen.com
linux命令:echo "New first line" | cat - file.txt > newfile.txt; mv newfile.txt file.txt file.txt newfile.txt mv newfile.txt; > file.txt - cat | line" first "New echo echo "New first line" | cat - file.txt > newfile.txt; mv newfile.txt file.txtrootopen.com
.

Finder压缩到ZIP,但总是包含无关的元数据文件(__MACOSX和. ds_store)文件和文件夹,可能会混淆其他程序。一种选择是创建它们,然后编辑ZIP。这个可以独立工作或automator脚本接受多个选择(文件或文件夹)并创建一个zip

linux命令:echo "$@" for f in "$@"; do FILENAME=${f##*/};FILEPATH=${f%/*}; cd "${FILEPATH}"; zip -r "${f}".zip "${FILENAME}" -x "*.DS_Store" -x "__MACOSX"; done; afplay /System/Library/Sounds/Sosumi.aiff /System/Library/Sounds/Sosumi.aiff afplay done; "__MACOSX"; -x "*.DS_Store" -x "${FILENAME}" "${f}".zip -r zip "${FILEPATH}"; cd FILENAME=${f##*/};FILEPATH=${f%/*}; do "$@"; in f for "$@" echo echo "$@" for f in "$@"; do FILENAME=${f##*/};FILEPATH=${f%/*}; cd "${FILEPATH}"; zip -r "${f}".zip "${FILENAME}" -x "*.DS_Store" -x "__MACOSX"; done; afplay /System/Library/Sounds/Sosumi.aiffrootopen.com
linux命令:echo "$@" for f in "$@"; do FILENAME=${f##*/};FILEPATH=${f%/*}; cd "${FILEPATH}"; zip -r "${f}".zip "${FILENAME}" -x "*.DS_Store" -x "__MACOSX"; done; afplay /System/Library/Sounds/Sosumi.aiff /System/Library/Sounds/Sosumi.aiff afplay done; "__MACOSX"; -x "*.DS_Store" -x "${FILENAME}" "${f}".zip -r zip "${FILEPATH}"; cd FILENAME=${f##*/};FILEPATH=${f%/*}; do "$@"; in f for "$@" echo echo "$@" for f in "$@"; do FILENAME=${f##*/};FILEPATH=${f%/*}; cd "${FILEPATH}"; zip -r "${f}".zip "${FILENAME}" -x "*.DS_Store" -x "__MACOSX"; done; afplay /System/Library/Sounds/Sosumi.aiffrootopen.com
.

bc是一个简单但功能强大且任意精度的CLI计算器语言,可以像这样使用:

linux命令:echo 20.05 + 15.00 | bc bc | 15.00 + 20.05 echo echo 20.05 + 15.00 | bcrootopen.com
linux命令:echo 20.05 + 15.00 | bc bc | 15.00 + 20.05 echo echo 20.05 + 15.00 | bcrootopen.com
.

linux命令:echo -e "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/dev/x86_64" | sudo tee -a /etc/pacman.conf /etc/pacman.conf -a tee sudo | https://download.sublimetext.com/arch/dev/x86_64" = "\n[sublime-text]\nServer -e echo echo -e "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/dev/x86_64" | sudo tee -a /etc/pacman.conf rootopen.com
linux命令:echo -e "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/dev/x86_64" | sudo tee -a /etc/pacman.conf /etc/pacman.conf -a tee sudo | https://download.sublimetext.com/arch/dev/x86_64" = "\n[sublime-text]\nServer -e echo echo -e "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/dev/x86_64" | sudo tee -a /etc/pacman.conf rootopen.com
.

linux命令:echo $HOME $HOME echo echo $HOMErootopen.com
linux命令:echo $HOME $HOME echo echo $HOMErootopen.com
.

linux命令:echo "some text `date +%Y-%m-%d\_%H:%M:%S`" >> /path/to/filename /path/to/filename >> +%Y-%m-%d\_%H:%M:%S`" `date text "some echo echo "some text `date +%Y-%m-%d\_%H:%M:%S`" >> /path/to/filenamerootopen.com
linux命令:echo "some text `date +%Y-%m-%d\_%H:%M:%S`" >> /path/to/filename /path/to/filename >> +%Y-%m-%d\_%H:%M:%S`" `date text "some echo echo "some text `date +%Y-%m-%d\_%H:%M:%S`" >> /path/to/filenamerootopen.com
.

对于AWS的手动域迁移过程感到沮丧,我试图安装cli53,route53-transfer失败了。我改为编写此oneliner以简化导出(通过AWS控制台ATM不支持)。输出可以轻松粘贴到Route53中的“导入托管区”对话框中。SOA / NS记录被排除,因为它们无法自动导入。

linux命令:echo -e "\$ORIGIN\tumccr.org.\n\$TTL\t1h\n" && aws route53 list-resource-record-sets --hosted-zone-id Z1EEXAMPLE9SF3 | jq -r '.ResourceRecordSets[] | [.Name, .Type, .ResourceRecords[0].Value] | join("\t")' - | grep -vE "NS|SOA" "NS|SOA" -vE grep | - join("\t")' | .ResourceRecords[0].Value] .Type, [.Name, | '.ResourceRecordSets[] -r jq | Z1EEXAMPLE9SF3 --hosted-zone-id list-resource-record-sets route53 aws && "\$ORIGIN\tumccr.org.\n\$TTL\t1h\n" -e echo echo -e "\$ORIGIN\tumccr.org.\n\$TTL\t1h\n" && aws route53 list-resource-record-sets --hosted-zone-id Z1EEXAMPLE9SF3 | jq -r '.ResourceRecordSets[] | [.Name, .Type, .ResourceRecords[0].Value] | join("\t")' - | grep -vE "NS|SOA"rootopen.com
linux命令:echo -e "\$ORIGIN\tumccr.org.\n\$TTL\t1h\n" && aws route53 list-resource-record-sets --hosted-zone-id Z1EEXAMPLE9SF3 | jq -r '.ResourceRecordSets[] | [.Name, .Type, .ResourceRecords[0].Value] | join("\t")' - | grep -vE "NS|SOA" "NS|SOA" -vE grep | - join("\t")' | .ResourceRecords[0].Value] .Type, [.Name, | '.ResourceRecordSets[] -r jq | Z1EEXAMPLE9SF3 --hosted-zone-id list-resource-record-sets route53 aws && "\$ORIGIN\tumccr.org.\n\$TTL\t1h\n" -e echo echo -e "\$ORIGIN\tumccr.org.\n\$TTL\t1h\n" && aws route53 list-resource-record-sets --hosted-zone-id Z1EEXAMPLE9SF3 | jq -r '.ResourceRecordSets[] | [.Name, .Type, .ResourceRecords[0].Value] | join("\t")' - | grep -vE "NS|SOA"rootopen.com
.
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

推荐
    热门命令