<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WordPress | 志摩市のパソコン屋 | One&amp;Only</title>
	<atom:link href="https://www.oaopc.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.oaopc.com</link>
	<description>パソコンから、ものづくりまで。志摩市の暮らしにデジタルな便利さを。</description>
	<lastBuildDate>Thu, 26 Feb 2026 12:49:24 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.oaopc.com/wp-content/uploads/2021/01/akd37-r41bs-100x100.png</url>
	<title>WordPress | 志摩市のパソコン屋 | One&amp;Only</title>
	<link>https://www.oaopc.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">188148420</site>	<item>
		<title>Geminiさんの画像生成の一貫性</title>
		<link>https://www.oaopc.com/gemini-404-image/</link>
					<comments>https://www.oaopc.com/gemini-404-image/#respond</comments>
		
		<dc:creator><![CDATA[Kebarhythm]]></dc:creator>
		<pubDate>Wed, 25 Feb 2026 10:55:02 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">https://www.oaopc.com/?p=2961</guid>

					<description><![CDATA[]]></description>
										<content:encoded><![CDATA[<div class="wp-block-jetpack-markdown"><p>サイトの404ページの画像をGeminiさんにお願いしてみました。</p>
<pre><code>404ページに飛んだときに見える画像を作っていただけませんか。
シンプルなイラストで、パソコンサポート店風のものが希望です。
</code></pre>
</div>



<figure class="wp-block-image size-medium"><img fetchpriority="high" decoding="async" width="300" height="300" src="https://www.oaopc.com/wp-content/uploads/2026/02/m5xfaqm5xfaqm5xf-300x300.png" alt="" class="wp-image-2962" srcset="https://www.oaopc.com/wp-content/uploads/2026/02/m5xfaqm5xfaqm5xf-300x300.png 300w, https://www.oaopc.com/wp-content/uploads/2026/02/m5xfaqm5xfaqm5xf-150x150.png 150w, https://www.oaopc.com/wp-content/uploads/2026/02/m5xfaqm5xfaqm5xf-768x768.png 768w, https://www.oaopc.com/wp-content/uploads/2026/02/m5xfaqm5xfaqm5xf.png 1024w" sizes="(max-width: 300px) 100vw, 300px" /></figure>



<div class="wp-block-jetpack-markdown"><p>テキストはでたらめなので省くようにお願いしました。</p>
<pre><code>提示していただいた画像から文字を消すことはできませんか。
</code></pre>
</div>



<figure class="wp-block-image size-medium"><img decoding="async" width="300" height="300" src="https://www.oaopc.com/wp-content/uploads/2026/02/kepd3hkepd3hkepd-300x300.png" alt="" class="wp-image-2963" srcset="https://www.oaopc.com/wp-content/uploads/2026/02/kepd3hkepd3hkepd-300x300.png 300w, https://www.oaopc.com/wp-content/uploads/2026/02/kepd3hkepd3hkepd-150x150.png 150w, https://www.oaopc.com/wp-content/uploads/2026/02/kepd3hkepd3hkepd-768x768.png 768w, https://www.oaopc.com/wp-content/uploads/2026/02/kepd3hkepd3hkepd.png 1024w" sizes="(max-width: 300px) 100vw, 300px" /></figure>



<div class="wp-block-jetpack-markdown"><p>消してくれました。<br>
以前は全く違う画像になって返ってきてたのに!!</p>
<p>AIの進化は、<strong>恐るべし</strong> だな。。</p>
</div>The post <a href="https://www.oaopc.com/gemini-404-image/">Geminiさんの画像生成の一貫性</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.oaopc.com/gemini-404-image/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2961</post-id>	</item>
		<item>
		<title>WordPressのMarkdownで空行を作る方法（Jetpack対応）</title>
		<link>https://www.oaopc.com/jetpack-markdown-empty-line/</link>
					<comments>https://www.oaopc.com/jetpack-markdown-empty-line/#respond</comments>
		
		<dc:creator><![CDATA[Kebarhythm]]></dc:creator>
		<pubDate>Fri, 20 Feb 2026 08:15:43 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[備忘録]]></category>
		<guid isPermaLink="false">https://www.oaopc.com/?p=2930</guid>

					<description><![CDATA[]]></description>
										<content:encoded><![CDATA[<div class="wp-block-jetpack-markdown"><p>WordPress（Jetpack）のMarkdownブロックで改行が詰められてしまう問題の解決策です。
テーマのPHPファイルをいじらずにエディタ上で完結する方法をまとめました。</p>
<h2>有効な回避策</h2>
<p>WordPressの自動整形を回避するには、空けたい行に <strong><code>&amp;nbsp;</code></strong> を入力するのが最も確実です。</p>
<h4>記述例</h4>
<pre><code>1段目の文章
&amp;nbsp;
2段目の文章（上の行に &amp;nbsp; を入れることで1行空きます）
</code></pre>
<p> </p>
<h2>なぜこれが必要なのか</h2>
<ul>
<li><strong>現象</strong>: WordPressは標準で連続した改行を「不要なスペース」と見なして削除します。</li>
<li><strong>理由</strong>: <code>&amp;nbsp;</code> はHTMLの実体参照（Non-Breaking Space）であり、ブラウザに対して「ここには空白という文字が存在する」と明示的に伝えます。</li>
<li><strong>メリット</strong>: <code>functions.php</code> を編集してシステム全体に影響を与えたり、Ubuntu側のApache設定をいじったりすることなく、記事単位で制御が可能です。</li>
</ul>
</div>The post <a href="https://www.oaopc.com/jetpack-markdown-empty-line/">WordPressのMarkdownで空行を作る方法（Jetpack対応）</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.oaopc.com/jetpack-markdown-empty-line/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2930</post-id>	</item>
		<item>
		<title>突然IPoEになってダウンする&#8230;</title>
		<link>https://www.oaopc.com/site-down/</link>
					<comments>https://www.oaopc.com/site-down/#respond</comments>
		
		<dc:creator><![CDATA[Kebarhythm]]></dc:creator>
		<pubDate>Sat, 25 Sep 2021 14:46:24 +0000</pubDate>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">https://www.oaopc.com/?p=2166</guid>

					<description><![CDATA[<p>昼の12時過ぎにメールがやってきました。『アラート :ImitationからはじまるOriginalityはダウンしているか応答していません』 久しぶりにRaspberry Piがおかしくなったのかなって考えながらローカ [&#8230;]</p>
The post <a href="https://www.oaopc.com/site-down/">突然IPoEになってダウンする…</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></description>
										<content:encoded><![CDATA[<p class="wp-block-paragraph">昼の12時過ぎにメールがやってきました。<br>『アラート :ImitationからはじまるOriginalityはダウンしているか応答していません』</p>



<p class="wp-block-paragraph">久しぶりにRaspberry Piがおかしくなったのかなって考えながらローカルネットワーク内からアクセスすると問題なく表示。スマホのWiFi切ってグローバル側からアクセスしてみると反応無し。。<br>これはダイナミックDNSの通知にラグが出たのかもって考えてMyDNSのサイトで確認してみたけど通知に問題はない感じ。でも通知されてるIPアドレスに違和感が&#8230;<br>ルーターのステータスに表示されてたアドレスと違うアドレスになってるようなぁ&#8230;</p>



<p class="wp-block-paragraph">で、しっかり確認してみると<span class="marker-red">PPPoE</span>が<span class="marker-red">IPoE</span>になったみたい。。</p>



<p class="wp-block-paragraph">それもいきなり。。</p>



<p class="wp-block-paragraph">昼間っから。。</p>



<p class="wp-block-paragraph">確かに一月前くらいにメールが来てました。<br>IPoEのサービスが順次始まるから各自で確認してね。みたいなメールが&#8230;</p>



<p class="wp-block-paragraph">その時は、そのままの契約で通信速度が速くなるんだーってくらいにしか思ってませんでしたが、まさか不具合が出るとはね。</p>



<p class="wp-block-paragraph">とは言ってもほっとく訳にもいかないから一時的にでも対処します。</p>



<p class="wp-block-paragraph">高速なIPoEに未練を感じながら、<br>アクセスポイントとして使ってたTP-Link Archer C6の動作モードをルーターに変更してPPPoEでインターネット接続する。</p>



<p class="wp-block-paragraph">これで今までとほぼ同じ。。</p>



<p class="wp-block-paragraph">ココの環境では通信速度が速くなっても違うところにボトルネックがあるからあんまり意味が無い気がする。そろそろこちらもRaspberry Pi 4の8GBくらいに替えちゃいましょうかね。。^^</p>The post <a href="https://www.oaopc.com/site-down/">突然IPoEになってダウンする…</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.oaopc.com/site-down/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2166</post-id>	</item>
		<item>
		<title>サイトアドレスを独自ドメインに変更しました</title>
		<link>https://www.oaopc.com/site-address/</link>
					<comments>https://www.oaopc.com/site-address/#respond</comments>
		
		<dc:creator><![CDATA[Kebarhythm]]></dc:creator>
		<pubDate>Sun, 17 Jan 2021 12:14:19 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">https://www.oaopc.com/?p=1948</guid>

					<description><![CDATA[<p>これまでは Dynamic DNS サービス MyDNS のサブアドレスを使用してきましたが、独自ドメインをMyDNSに登録することを覚えたので、ウェブサイトアドレスを前から所有している独自ドメイン『 oaopc.com [&#8230;]</p>
The post <a href="https://www.oaopc.com/site-address/">サイトアドレスを独自ドメインに変更しました</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></description>
										<content:encoded><![CDATA[<p class="wp-block-paragraph">これまでは Dynamic DNS サービス MyDNS のサブアドレスを使用してきましたが、独自ドメインをMyDNSに登録することを覚えたので、ウェブサイトアドレスを前から所有している独自ドメイン『 oaopc.com 』に変更しました。</p>



<p class="wp-block-paragraph">https://www.morien.mydns.jp<br>                ↓<br>https://www.oaopc.com</p>The post <a href="https://www.oaopc.com/site-address/">サイトアドレスを独自ドメインに変更しました</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.oaopc.com/site-address/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1948</post-id>	</item>
		<item>
		<title>AutoptimizeとSyntaxHighlighter Evolved</title>
		<link>https://www.oaopc.com/plugin-error/</link>
					<comments>https://www.oaopc.com/plugin-error/#respond</comments>
		
		<dc:creator><![CDATA[Kebarhythm]]></dc:creator>
		<pubDate>Fri, 02 Oct 2020 10:00:11 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">https://www.morien.mydns.jp/?p=1763</guid>

					<description><![CDATA[<p>WordPressのサイトヘルスステータスを確認しながら調整して、なんとかここまできました。 対応の中の一つにAutoptimizeプラグインの導入があります。WordPressを最適化して高速化するというプラグインです [&#8230;]</p>
The post <a href="https://www.oaopc.com/plugin-error/">AutoptimizeとSyntaxHighlighter Evolved</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></description>
										<content:encoded><![CDATA[<p class="wp-block-paragraph">WordPressのサイトヘルスステータスを確認しながら調整して、なんとかここまできました。</p>



<figure class="wp-block-image size-large"><img decoding="async" width="858" height="484" src="https://www.oaopc.com/wp-content/uploads/2020/10/952bf5201b76c3d9ddca2b1069ba8a3f.png" alt="" class="wp-image-1764" srcset="https://www.oaopc.com/wp-content/uploads/2020/10/952bf5201b76c3d9ddca2b1069ba8a3f.png 858w, https://www.oaopc.com/wp-content/uploads/2020/10/952bf5201b76c3d9ddca2b1069ba8a3f-300x169.png 300w, https://www.oaopc.com/wp-content/uploads/2020/10/952bf5201b76c3d9ddca2b1069ba8a3f-768x433.png 768w, https://www.oaopc.com/wp-content/uploads/2020/10/952bf5201b76c3d9ddca2b1069ba8a3f-676x381.png 676w" sizes="(max-width: 858px) 100vw, 858px" /></figure>



<span id="more-1763"></span>



<p class="wp-block-paragraph">対応の中の一つにAutoptimizeプラグインの導入があります。WordPressを最適化して高速化するというプラグインです。<br>（このサイトではあまり効果がない気がしますが&#8230;^^;）<br><br>導入後しばらくしてから過去の記事の閲覧中にクラッシュすることが分かりました。エラーでレイアウトが崩れるくらいならまだいいけどクラッシュしてそのブラウザのタブだけ無反応になります。これはイメージが悪い。<br><br>調べてみるとSyntaxHighlighter Evolvedを使ってるところを表示するときにクラッシュしているみたい。<br>Autoptimizeを無効化するとクラッシュしないことを確認したので、無効化のままにしようかとも思いましたが設定で対応します。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="669" src="https://www.oaopc.com/wp-content/uploads/2020/10/009a7af13701a2ba4e22584b06bf3884-1024x669.png" alt="" class="wp-image-1766" srcset="https://www.oaopc.com/wp-content/uploads/2020/10/009a7af13701a2ba4e22584b06bf3884-1024x669.png 1024w, https://www.oaopc.com/wp-content/uploads/2020/10/009a7af13701a2ba4e22584b06bf3884-300x196.png 300w, https://www.oaopc.com/wp-content/uploads/2020/10/009a7af13701a2ba4e22584b06bf3884-768x502.png 768w, https://www.oaopc.com/wp-content/uploads/2020/10/009a7af13701a2ba4e22584b06bf3884-676x442.png 676w, https://www.oaopc.com/wp-content/uploads/2020/10/009a7af13701a2ba4e22584b06bf3884.png 1036w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">JavaScriptコードの最適化のチェックを外します。<br>もう少しピンポイントで設定できるのかもしれませんが他でも影響が出てくることも考えられるのでこの対応にしときます。</p>



<p class="wp-block-paragraph">この状態でAutoptimizeの意味はあるのかな？？</p>The post <a href="https://www.oaopc.com/plugin-error/">AutoptimizeとSyntaxHighlighter Evolved</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.oaopc.com/plugin-error/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1763</post-id>	</item>
		<item>
		<title>7時間のダウン&#8230;</title>
		<link>https://www.oaopc.com/downtime-7hours/</link>
					<comments>https://www.oaopc.com/downtime-7hours/#respond</comments>
		
		<dc:creator><![CDATA[Kebarhythm]]></dc:creator>
		<pubDate>Fri, 02 Oct 2020 05:09:47 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">https://www.morien.mydns.jp/?p=1760</guid>

					<description><![CDATA[<p>Jetpackのダウンタイムモニターを有効にしたのに、その通知メールが迷惑メールに入ってた。。自分でダウンしてるのに気が付いたのが7時間後。(ToT)大事なメールにはフィルター設定しましょう。 これのお陰でダウンタイムモ [&#8230;]</p>
The post <a href="https://www.oaopc.com/downtime-7hours/">7時間のダウン…</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></description>
										<content:encoded><![CDATA[<p class="wp-block-paragraph">Jetpackのダウンタイムモニターを有効にしたのに、その通知メールが迷惑メールに入ってた。。<br>自分でダウンしてるのに気が付いたのが7時間後。(ToT)<br>大事なメールにはフィルター設定しましょう。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="607" height="479" src="https://www.oaopc.com/wp-content/uploads/2020/10/2020-10-02-135606.png" alt="" class="wp-image-1761" srcset="https://www.oaopc.com/wp-content/uploads/2020/10/2020-10-02-135606.png 607w, https://www.oaopc.com/wp-content/uploads/2020/10/2020-10-02-135606-300x237.png 300w" sizes="(max-width: 607px) 100vw, 607px" /></figure>



<p class="wp-block-paragraph">これのお陰でダウンタイムモニターがとても有効だということがわかりました。</p>The post <a href="https://www.oaopc.com/downtime-7hours/">7時間のダウン…</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.oaopc.com/downtime-7hours/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1760</post-id>	</item>
		<item>
		<title>RaspbianからUbuntuに</title>
		<link>https://www.oaopc.com/raspbian2ubuntu/</link>
					<comments>https://www.oaopc.com/raspbian2ubuntu/#respond</comments>
		
		<dc:creator><![CDATA[Kebarhythm]]></dc:creator>
		<pubDate>Sat, 26 Sep 2020 14:04:39 +0000</pubDate>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">https://www.morien.mydns.jp/?p=1744</guid>

					<description><![CDATA[<p>OSの呼び名がRaspbianからRaspberry Pi OSに変わるころ&#8230; Ubuntuにしてみました。^^; Windows10のWSL2にインストールしたUbuntuが想像以上にスムーズだったのと、R [&#8230;]</p>
The post <a href="https://www.oaopc.com/raspbian2ubuntu/">RaspbianからUbuntuに</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></description>
										<content:encoded><![CDATA[<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="225" height="214" src="https://www.oaopc.com/wp-content/uploads/2020/09/02d3075d8fade7a176c10d0d8efca9dd.png" alt="" class="wp-image-1745"/></figure>



<p class="wp-block-paragraph">OSの呼び名がRaspbianからRaspberry Pi OSに変わるころ&#8230;</p>



<p class="wp-block-paragraph">Ubuntuにしてみました。^^;</p>



<span id="more-1744"></span>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="393" src="https://www.oaopc.com/wp-content/uploads/2020/09/49d8af344ef283a6ec30c1a6e2034f4a-1024x393.png" alt="" class="wp-image-1747" srcset="https://www.oaopc.com/wp-content/uploads/2020/09/49d8af344ef283a6ec30c1a6e2034f4a-1024x393.png 1024w, https://www.oaopc.com/wp-content/uploads/2020/09/49d8af344ef283a6ec30c1a6e2034f4a-300x115.png 300w, https://www.oaopc.com/wp-content/uploads/2020/09/49d8af344ef283a6ec30c1a6e2034f4a-768x295.png 768w, https://www.oaopc.com/wp-content/uploads/2020/09/49d8af344ef283a6ec30c1a6e2034f4a-676x260.png 676w, https://www.oaopc.com/wp-content/uploads/2020/09/49d8af344ef283a6ec30c1a6e2034f4a.png 1291w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Windows10のWSL2にインストールしたUbuntuが想像以上にスムーズだったのと、RaspbianのバージョンがStretchだったからそろそろ入れ替えを考えていたから。LTSってところも大事な要素ですね。</p>



<p class="wp-block-paragraph">WordPressの環境作りにもだいぶ慣れてきました。^^</p>The post <a href="https://www.oaopc.com/raspbian2ubuntu/">RaspbianからUbuntuに</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.oaopc.com/raspbian2ubuntu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1744</post-id>	</item>
		<item>
		<title>無料でSSL(Let&#8217;s Encrypt)化</title>
		<link>https://www.oaopc.com/ssl-lets-encrypt/</link>
					<comments>https://www.oaopc.com/ssl-lets-encrypt/#respond</comments>
		
		<dc:creator><![CDATA[Kebarhythm]]></dc:creator>
		<pubDate>Sat, 02 May 2020 08:51:20 +0000</pubDate>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[備忘録]]></category>
		<guid isPermaLink="false">https://www.morien.mydns.jp/?p=1557</guid>

					<description><![CDATA[<p>このサイトのSSL化は必要ないだろうといままでスルーしてきました。ふと気になって少しばかりネット検索してみところApacheだったらほぼ自動でSSL化ができるようなので、バックアップとっていっちょやってみました。 まず必 [&#8230;]</p>
The post <a href="https://www.oaopc.com/ssl-lets-encrypt/">無料でSSL(Let’s Encrypt)化</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></description>
										<content:encoded><![CDATA[<p class="wp-block-paragraph">このサイトのSSL化は必要ないだろうといままでスルーしてきました。<br>ふと気になって少しばかりネット検索してみところApacheだったらほぼ自動でSSL化ができるようなので、バックアップとっていっちょやってみました。</p>



<span id="more-1557"></span>



<p class="wp-block-paragraph">まず必要なパッケージをインストールします。</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
sudo apt install certbot
sudo apt install python-certbot-apache
</pre></div>


<p class="wp-block-paragraph">後はコマンドを実行するだけ。<br>設定されているServerNameを取ってくるようなのでそこは確認しときます。</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; highlight: [4,5,13,21,27,28,45]; title: ; notranslate">
pi@raspberry:~ $ sudo certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Enter email address (used for urgent renewal and security notices) (Enter &#039;c&#039; to
cancel): pi@example.com

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at

<a rel="noopener" href="https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf." title="404 Page not found" class="blogcard-wrap external-blogcard-wrap a-wrap cf" target="_blank"><div class="blogcard external-blogcard eb-left cf"><div class="blogcard-label external-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail external-blogcard-thumbnail"><img loading="lazy" decoding="async" src="https://www.oaopc.com/wp-content/uploads/cocoon-resources/blog-card-cache/42dcd0ec02488feeb1659f650a7a16e0.png" alt="" class="blogcard-thumb-image external-blogcard-thumb-image" width="320" height="180" /></figure><div class="blogcard-content external-blogcard-content"><div class="blogcard-title external-blogcard-title">404 Page not found</div><div class="blogcard-snippet external-blogcard-snippet">Let&#039;s Encrypt is a free, automated, and open Certificate Authority brought to you by the nonprofit Internet Security Res...</div></div><div class="blogcard-footer external-blogcard-footer cf"><div class="blogcard-site external-blogcard-site"><div class="blogcard-favicon external-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://letsencrypt.org/404.html" alt="" class="blogcard-favicon-image external-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain external-blogcard-domain">letsencrypt.org</div></div></div></div></a> You must
agree in order to register with the ACME server at

<a rel="noopener" href="https://acme-v02.api.letsencrypt.org/directory" title="https://acme-v02.api.letsencrypt.org/directory" class="blogcard-wrap external-blogcard-wrap a-wrap cf" target="_blank"><div class="blogcard external-blogcard eb-left cf"><div class="blogcard-label external-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail external-blogcard-thumbnail"><img loading="lazy" decoding="async" src="https://s.wordpress.com/mshots/v1/https%3A%2F%2Facme-v02.api.letsencrypt.org%2Fdirectory?w=320&#038;h=180" alt="" class="blogcard-thumb-image external-blogcard-thumb-image" width="320" height="180" /></figure><div class="blogcard-content external-blogcard-content"><div class="blogcard-title external-blogcard-title">https://acme-v02.api.letsencrypt.org/directory</div><div class="blogcard-snippet external-blogcard-snippet"></div></div><div class="blogcard-footer external-blogcard-footer cf"><div class="blogcard-site external-blogcard-site"><div class="blogcard-favicon external-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://acme-v02.api.letsencrypt.org/directory" alt="" class="blogcard-favicon-image external-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain external-blogcard-domain">acme-v02.api.letsencrypt.org</div></div></div></div></a>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(A)gree/(C)ancel: A

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let&#039;s Encrypt project and the non-profit
organization that develops Certbot? We&#039;d like to send you email about our work
encrypting the web, EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: N

Which names would you like to activate HTTPS for?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: www.example.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter &#039;c&#039; to cancel): 1
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for www.example.com
Waiting for verification...
Cleaning up challenges
Created an SSL vhost at /etc/apache2/sites-available/000-default-le-ssl.conf
Deploying Certificate to VirtualHost /etc/apache2/sites-available/000-default-le-ssl.conf
Enabling available site: /etc/apache2/sites-available/000-default-le-ssl.conf

Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you&#039;re confident your site works on HTTPS. You can undo this
change by editing your web server&#039;s configuration.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number &#x5B;1-2] then &#x5B;enter] (press &#039;c&#039; to cancel): 1

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations! You have successfully enabled https://www.example.com

You should test your configuration at:

<a rel="noopener" href="https://www.ssllabs.com/ssltest/analyze.html?d=www.example.com" title="SSL Server Test (Powered by Qualys SSL Labs)" class="blogcard-wrap external-blogcard-wrap a-wrap cf" target="_blank"><div class="blogcard external-blogcard eb-left cf"><div class="blogcard-label external-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail external-blogcard-thumbnail"><img loading="lazy" decoding="async" src="https://s.wordpress.com/mshots/v1/https%3A%2F%2Fwww.ssllabs.com%2Fssltest%2Fanalyze.html%3Fd%3Dwww.example.com?w=320&#038;h=180" alt="" class="blogcard-thumb-image external-blogcard-thumb-image" width="320" height="180" /></figure><div class="blogcard-content external-blogcard-content"><div class="blogcard-title external-blogcard-title">SSL Server Test (Powered by Qualys SSL Labs)</div><div class="blogcard-snippet external-blogcard-snippet">A comprehensive free SSL test for your public web servers.</div></div><div class="blogcard-footer external-blogcard-footer cf"><div class="blogcard-site external-blogcard-site"><div class="blogcard-favicon external-blogcard-favicon"><img loading="lazy" decoding="async" src="https://www.google.com/s2/favicons?domain=https://www.ssllabs.com/ssltest/analyze.html?d=www.example.com" alt="" class="blogcard-favicon-image external-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain external-blogcard-domain">www.ssllabs.com</div></div></div></div></a>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/www.example.com/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/www.example.com/privkey.pem
   Your cert will expire on 2020-07-27. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot again
   with the &quot;certonly&quot; option. To non-interactively renew *all* of
   your certificates, run &quot;certbot renew&quot;
 - Your account credentials have been saved in your Certbot
   configuration directory at /etc/letsencrypt. You should make a
   secure backup of this folder now. This configuration directory will
   also contain certificates and private keys obtained by Certbot so
   making regular backups of this folder is ideal.
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let&#039;s Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le

</pre></div>


<p class="wp-block-paragraph">対話形式なので質問に答えていくだけでSSL証明書発行とapacheのSSL設定が終了します。</p>



<p class="wp-block-paragraph">リダイレクトの選択では、いきなりhttpsでしか接続できなくなると何かトラブルがあった時に解決するまでの間ダウンしてしまうので『1: No redirect』を選択しました。問題なく接続できることを確認してから[.htaccess]ファイルの先頭にリダイレクトを追加します。</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&amp;lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} &#x5B;R=301,L]
&amp;lt;/IfModule&gt;

# BEGIN WordPress
...
</pre></div>


<p class="wp-block-paragraph">Let’s Encrypt証明書の有効期限は90日で期限まで残り1ヶ月になると更新処理が行えます。それ以前に更新処理をしてもスキップされるだけなので定期的に更新処理をしておきましょう。<br>cronで週に1回実行するように登録。</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
0 1 * * 7 certbot renew
</pre></div>


<p class="wp-block-paragraph">個々の環境に合わせてルーターのポートを開けたり、ファイアウォールの設定をしたりと他の作業も必要だけど、SSL化がここまで簡素化されてるならさっさとやっておいた方がいいように思いました。</p>The post <a href="https://www.oaopc.com/ssl-lets-encrypt/">無料でSSL(Let’s Encrypt)化</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.oaopc.com/ssl-lets-encrypt/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1557</post-id>	</item>
		<item>
		<title>5.0へアップデート</title>
		<link>https://www.oaopc.com/5-0-update/</link>
					<comments>https://www.oaopc.com/5-0-update/#respond</comments>
		
		<dc:creator><![CDATA[Kebarhythm]]></dc:creator>
		<pubDate>Sat, 08 Dec 2018 12:51:48 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[備忘録]]></category>
		<guid isPermaLink="false">http://www.morien.mydns.jp/?p=1036</guid>

					<description><![CDATA[<p>テーマもバージョンアップしたので、さっさとWordPressを5.0にします。その方が新しいエディターにも早く慣れるだろうし。^^これも5.0で投稿してます。</p>
The post <a href="https://www.oaopc.com/5-0-update/">5.0へアップデート</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></description>
										<content:encoded><![CDATA[<p class="wp-block-paragraph">テーマもバージョンアップしたので、さっさとWordPressを5.0にします。<br>その方が新しいエディターにも早く慣れるだろうし。^^<br>これも5.0で投稿してます。</p>The post <a href="https://www.oaopc.com/5-0-update/">5.0へアップデート</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.oaopc.com/5-0-update/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1036</post-id>	</item>
		<item>
		<title>WordPress 5.0 がやってきましたね</title>
		<link>https://www.oaopc.com/wordpress-5-0/</link>
					<comments>https://www.oaopc.com/wordpress-5-0/#respond</comments>
		
		<dc:creator><![CDATA[Kebarhythm]]></dc:creator>
		<pubDate>Fri, 07 Dec 2018 08:19:41 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://www.morien.mydns.jp/?p=1023</guid>

					<description><![CDATA[<p>これはまだ4.98です。 別環境があるのでそちらを5.0にアップデートしてみました。 目玉はやはり『Gutenberg』新エディターですね。 少しだけ使ってみましたが、それほどとっつきにくい印象はないです。いままでがシン [&#8230;]</p>
The post <a href="https://www.oaopc.com/wordpress-5-0/">WordPress 5.0 がやってきましたね</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></description>
										<content:encoded><![CDATA[<p>これはまだ4.98です。</p>
<p>別環境があるのでそちらを5.0にアップデートしてみました。</p>
<p>目玉はやはり『Gutenberg』新エディターですね。<br />
少しだけ使ってみましたが、それほどとっつきにくい印象はないです。いままでがシンプルな使い方しかしてないからですけど。新しいだけに慣れれば編集しやすいように思いました。</p>
<p>テーマも画面の崩れ等もなく表示されてたので近いうちにバージョンアップしてもいいかなって感じです。</p>The post <a href="https://www.oaopc.com/wordpress-5-0/">WordPress 5.0 がやってきましたね</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.oaopc.com/wordpress-5-0/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1023</post-id>	</item>
	</channel>
</rss>
