<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://monobook.org/w/index.php?action=history&amp;feed=atom&amp;title=Mono.Security.Protocol.Tls.TlsException%E3%82%92%E5%9B%9E%E9%81%BF%E3%81%99%E3%82%8B</id>
	<title>Mono.Security.Protocol.Tls.TlsExceptionを回避する - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://monobook.org/w/index.php?action=history&amp;feed=atom&amp;title=Mono.Security.Protocol.Tls.TlsException%E3%82%92%E5%9B%9E%E9%81%BF%E3%81%99%E3%82%8B"/>
	<link rel="alternate" type="text/html" href="https://monobook.org/w/index.php?title=Mono.Security.Protocol.Tls.TlsException%E3%82%92%E5%9B%9E%E9%81%BF%E3%81%99%E3%82%8B&amp;action=history"/>
	<updated>2026-06-05T04:09:28Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://monobook.org/w/index.php?title=Mono.Security.Protocol.Tls.TlsException%E3%82%92%E5%9B%9E%E9%81%BF%E3%81%99%E3%82%8B&amp;diff=7780&amp;oldid=prev</id>
		<title>imported&gt;Administrator: ページの作成:「FreeBSD上のMonoでCoreTweetを使用したところ以下のようなエラーが出た。  Mono.Security.Protocol.Tls.TlsException: Invalid certificate...」</title>
		<link rel="alternate" type="text/html" href="https://monobook.org/w/index.php?title=Mono.Security.Protocol.Tls.TlsException%E3%82%92%E5%9B%9E%E9%81%BF%E3%81%99%E3%82%8B&amp;diff=7780&amp;oldid=prev"/>
		<updated>2015-12-03T02:02:41Z</updated>

		<summary type="html">&lt;p&gt;ページの作成:「&lt;a href=&quot;/wiki/FreeBSD&quot; title=&quot;FreeBSD&quot;&gt;FreeBSD&lt;/a&gt;上の&lt;a href=&quot;/wiki/Mono&quot; title=&quot;Mono&quot;&gt;Mono&lt;/a&gt;で&lt;a href=&quot;/w/index.php?title=CoreTweet&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;「CoreTweet」 (存在しないページ)&quot;&gt;CoreTweet&lt;/a&gt;を使用したところ以下のような&lt;a href=&quot;/wiki/%E3%82%A8%E3%83%A9%E3%83%BC&quot; title=&quot;エラー&quot;&gt;エラー&lt;/a&gt;が出た。  Mono.Security.Protocol.Tls.TlsException: Invalid certificate...」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[FreeBSD]]上の[[Mono]]で[[CoreTweet]]を使用したところ以下のような[[エラー]]が出た。&lt;br /&gt;
 Mono.Security.Protocol.Tls.TlsException: Invalid certificate received from server. Error code: 0xffffffff80092012&lt;br /&gt;
   at Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.validateCertificates (Mono.Security.X509.X509CertificateCollection certificates) [0x00000] in :0 &lt;br /&gt;
   at Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.ProcessAsTls1 () [0x00000] in :0 &lt;br /&gt;
   at Mono.Security.Protocol.Tls.Handshake.HandshakeMessage.Process () [0x00000] in :0 &lt;br /&gt;
   at (wrapper remoting-invoke-with-check) Mono.Security.Protocol.Tls.Handshake.HandshakeMessage:Process ()&lt;br /&gt;
   at Mono.Security.Protocol.Tls.ClientRecordProtocol.ProcessHandshakeMessage (Mono.Security.Protocol.Tls.TlsStream handMsg) [0x00000] in :0 &lt;br /&gt;
   at Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback (IAsyncResult asyncResult) [0x00000] in :0 &lt;br /&gt;
  &lt;br /&gt;
CoreTweet内部で使っているHttpWebRequestが[[SSL]]をうまく処理できていないようだ。&lt;br /&gt;
mozrootsというツールを使えば治るなどと海外フォーラムでは書かれていたが治る気配はなかった。&lt;br /&gt;
&lt;br /&gt;
==解決策1==&lt;br /&gt;
HttpWebRequestを使う前に以下の[[コード]]を挿入してSSL証明書の整合性チェックを上書きし、常にtrueを返すようにして強行突破する。&lt;br /&gt;
強行突破とは何事かという感じだが知らんがな。&lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
ServicePointManager.ServerCertificateValidationCallback = (sender, cert, chain, errors) =&amp;gt; true;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==関連項目==&lt;br /&gt;
*[[Mono]]&lt;br /&gt;
&lt;br /&gt;
==参考文献==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
{{stub}}&lt;br /&gt;
&lt;br /&gt;
[[category:Mono]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Administrator</name></author>
	</entry>
</feed>