update some content

This commit is contained in:
2021-10-28 14:13:06 +08:00
parent 97eb780aa4
commit 4f99455d8f
242 changed files with 1826 additions and 2616 deletions

View File

@@ -13,7 +13,7 @@
"articleSection" : "post",
"name" : "[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL",
"headline" : "[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL",
"description" : "\x3cp\x3e今天老闆出國發slack說手機不能寄信看了一下似乎是因為用GMAIL的APP來收信\x3c\/p\x3e\n\x3cp\x3e然後google 不知道跟人家改了什麼,結果不接受原本的認證了\x26hellip; WTF \x26hellip;.\x3c\/p\x3e\n\x3cp\x3e然後這問題應該很久了結果現在才在講 \x26hellip;.\x3c\/p\x3e",
"description" : "\u003cp\u003e今天老闆出國發slack說手機不能寄信看了一下似乎是因為用GMAIL的APP來收信\u003c\/p\u003e\n\u003cp\u003e然後google 不知道跟人家改了什麼,結果不接受原本的認證了\u0026hellip; WTF \u0026hellip;.\u003c\/p\u003e\n\u003cp\u003e然後這問題應該很久了結果現在才在講 \u0026hellip;.\u003c\/p\u003e",
"inLanguage" : "en",
"author" : "Eric Chang",
"creator" : "Eric Chang",
@@ -21,8 +21,8 @@
"accountablePerson" : "Eric Chang",
"copyrightHolder" : "Eric Chang",
"copyrightYear" : "2019",
"datePublished": "2019-03-20 11:42:47 \x2b0800 CST",
"dateModified" : "2019-03-20 11:42:47 \x2b0800 CST",
"datePublished": "2019-03-20 11:42:47 \u002b0800 CST",
"dateModified" : "2019-03-20 11:42:47 \u002b0800 CST",
"url" : "https:\/\/h.cowbay.org\/post\/command_to_test_main_ssl\/",
"wordCount" : "660",
"image" : "https://h.cowbay.orghttps://h.cowbay.org/images/post-default-10.jpg"",
@@ -45,9 +45,9 @@
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<link href="https://h.cowbay.org/css/style.css?v=1632901488" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/style.css?v=1634607506" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/custom.css?v=1632901488" rel="stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/custom.css?v=1634607506" rel="stylesheet" type='text/css' media='all'>
<link rel="shortcut icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
<link rel="icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
@@ -305,9 +305,9 @@ if (!doNotTrack) {
<p>windows環境應該也可以只是要自己去安裝 openssl 軟體</p>
<p>To verify SSL, connect to any Linux server via SSH and use the instructions below:</p>
<p><strong>測試 SSL-IMAP 993 port</strong></p>
<pre><code>openssl s_client -showcerts -connect mail.example.com:993
<pre tabindex="0"><code>openssl s_client -showcerts -connect mail.example.com:993
</code></pre><p>結果應該會像是這樣</p>
<pre><code>2019-03-20 11:21:02 [changch@hqdc034 ~]$ openssl s_client -showcerts -connect mail.abc.com:993
<pre tabindex="0"><code>2019-03-20 11:21:02 [changch@hqdc034 ~]$ openssl s_client -showcerts -connect mail.abc.com:993
CONNECTED(00000003)
depth=0 C = TW, ST = Taipei, L = Taipei, O = iredmail02.abc.com, OU = IT, CN = iredmail02.abc.com, emailAddress = root@iredmail02.abc.com
verify error:num=18:self signed certificate
@@ -388,10 +388,10 @@ SSL-Session:
2019-03-20 11:21:47 [changch@hqdc034 ~]$
</code></pre><p><strong>測試SMTP TLS 587 port</strong></p>
<pre><code>openssl s_client -starttls smtp -showcerts -connect mail.example.com:587
<pre tabindex="0"><code>openssl s_client -starttls smtp -showcerts -connect mail.example.com:587
</code></pre><p>指令有點不同,要加上 startls smtp 的參數
回應應該會是這樣</p>
<pre><code>2019-03-20 11:50:48 [changch@hqdc034 ~]$ openssl s_client -starttls smtp -showcerts -connect mail.abc.com:587
<pre tabindex="0"><code>2019-03-20 11:50:48 [changch@hqdc034 ~]$ openssl s_client -starttls smtp -showcerts -connect mail.abc.com:587
CONNECTED(00000003)
depth=1 C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3
verify error:num=20:unable to get local issuer certificate
@@ -778,7 +778,7 @@ title="pinterest icon"></i>
</div>
<script src="https://h.cowbay.org/js/jquery.min.js"></script>
<script src="https://h.cowbay.org/js/jquerymigrate.js"></script>
<script src="https://h.cowbay.org/js/production.min.js?v=1632901488"></script>
<script src="https://h.cowbay.org/js/production.min.js?v=1634607506"></script>
</body>
</html>