FQDN を変更する
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*FQDN を変更する [#o989c3b4]
サーバダウンのため、急遽予備サーバのFQDNを変更することに...
例えば www.smb.net というウエブサーバがダウン、sun1.smb.n...
sun1.smb.net/etc/rc.conf の2行をwww.smb.netの値に変更
hostname="blackcube.smb.net"
ifconfig_em1="inet 219.117.246.201 netmask 0xffffffe0"
再起動する。 www.smb.net へアクセスするもSSL証明書が元の...
以下編集中
1001 8:36 cd /usr/local/etc
1002 8:36 ll
1003 8:37 tar cvfzp letsencrypt_tar.gz letsencrypt
1004 8:37 ll
1005 8:46 cd /usr/ports/security/py-certbot
1006 8:46 make reinstall
1007 8:54 apachectl stop
1008 8:57 certbot certonly --webroot -w /usr/local/...
Stopping apache24.
Waiting for PIDS: 6238.
root@blackcube:/usr/ports/security/py-certbot:25_01_18:8...
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Enter email address (used for urgent renewal and securit...
(Enter 'c' to cancel): root@smb.net
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.4-April-3-202...
order to register with the ACME server. Do you agree?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
(Y)es/(N)o: Y
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
Would you be willing, once your first certificate is suc...
share your email address with the Electronic Frontier Fo...
partner of the Let's Encrypt project and the non-profit ...
develops Certbot? We'd like to send you email about our ...
EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
(Y)es/(N)o: Y
Account registered.
Requesting a certificate for www.smb.net
Certbot failed to authenticate some domains (authenticat...
Domain: www.smb.net
Type: connection
Detail: 219.117.246.201: Fetching http://www.smb.net/....
Hint: The Certificate Authority failed to download the t...
Some challenges have failed.
Ask for help or search for solutions at https://communit...
root@blackcube:/usr/ports/security/py-certbot:25_01_18:8...
root@blackcube:~:25_01_18:9:02 #
root@blackcube:~:25_01_18:9:02 #
root@blackcube:~:25_01_18:9:02 #
root@blackcube:~:25_01_18:9:02 # certbot certonly --webr...
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for www.smb.net
Certbot failed to authenticate some domains (authenticat...
Domain: www.smb.net
Type: connection
Detail: 219.117.246.201: Fetching http://www.smb.net/....
Hint: The Certificate Authority failed to download the t...
Some challenges have failed.
Ask for help or search for solutions at https://communit...
root@blackcube:~:25_01_18:9:02 # apachectl start
Performing sanity check on apache24 configuration:
AH00526: Syntax error on line 23 of /usr/local/etc/apach...
SSLCertificateFile: file '/usr/local/etc/letsencrypt/liv...
Starting apache24.
AH00526: Syntax error on line 23 of /usr/local/etc/apach...
SSLCertificateFile: file '/usr/local/etc/letsencrypt/liv...
/usr/local/etc/rc.d/apache24: WARNING: failed to start a...
root@blackcube:~:25_01_18:9:02 #
root@blackcube:~:25_01_18:9:03 #
root@blackcube:~:25_01_18:9:03 # apachectl start
Performing sanity check on apache24 configuration:
httpd: Syntax error on line 528 of /usr/local/etc/apache...
Starting apache24.
httpd: Syntax error on line 528 of /usr/local/etc/apache...
/usr/local/etc/rc.d/apache24: WARNING: failed to start a...
root@blackcube:~:25_01_18:9:04 #
root@blackcube:~:25_01_18:9:12 #
root@blackcube:~:25_01_18:9:12 #
root@blackcube:~:25_01_18:9:12 # apachectl start
Performing sanity check on apache24 configuration:
Syntax OK
Starting apache24.
root@blackcube:~:25_01_18:9:12 # certbot certonly --webr...
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for www.smb.net
Successfully received certificate.
Certificate is saved at: /usr/local/etc/letsencrypt/live...
Key is saved at: /usr/local/etc/letsencrypt/live...
This certificate expires on 2025-04-17.
These files will be updated when the certificate renews.
NEXT STEPS:
- The certificate will need to be renewed before it expi...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
If you like Certbot, please consider supporting our work...
* Donating to ISRG / Let's Encrypt: https://letsencry...
* Donating to EFF: https://eff.org/d...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
root@blackcube:~:25_01_18:9:12 # apachectl restart
Performing sanity check on apache24 configuration:
httpd: Syntax error on line 529 of /usr/local/etc/apache...
root@blackcube:~:25_01_18:9:14 # apachectl restart
Performing sanity check on apache24 configuration:
AH00526: Syntax error on line 23 of /usr/local/etc/apach...
SSLCertificateFile: file '/usr/local/etc/letsencrypt/liv...
root@blackcube:~:25_01_18:9:15 #
root@blackcube:~:25_01_18:9:16 #
root@blackcube:~:25_01_18:9:16 #
root@blackcube:~:25_01_18:9:16 # apachectl restart
Performing sanity check on apache24 configuration:
Syntax OK
Stopping apache24.
Waiting for PIDS: 9324.
Performing sanity check on apache24 configuration:
Syntax OK
Starting apache24.
root@blackcube:~:25_01_18:9:16 #
root@blackcube:~:25_01_18:9:18 # df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ada0p2 7.0T 1.0T 5.5T 15% /
devfs 1.0K 0B 1.0K 0% /dev
root@blackcube:~:25_01_18:10:14 #
[blackcube][ ...
Hint: The Certificate Authority failed to download the t...
Some challenges have failed.
Ask for help or search for solutions at https://communit...
root@blackcube:/usr/ports/security/py-certbot:25_01_18:8...
root@blackcube:~:25_01_18:9:02 #
root@blackcube:~:25_01_18:9:02 #
root@blackcube:~:25_01_18:9:02 #
root@blackcube:~:25_01_18:9:02 # certbot certonly --webr...
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for www.smb.net
Certbot failed to authenticate some domains (authenticat...
Domain: www.smb.net
Type: connection
Detail: 219.117.246.201: Fetching http://www.smb.net/....
Hint: The Certificate Authority failed to download the t...
Some challenges have failed.
Ask for help or search for solutions at https://communit...
root@blackcube:~:25_01_18:9:02 # apachectl start
Performing sanity check on apache24 configuration:
AH00526: Syntax error on line 23 of /usr/local/etc/apach...
SSLCertificateFile: file '/usr/local/etc/letsencrypt/liv...
Starting apache24.
AH00526: Syntax error on line 23 of /usr/local/etc/apach...
SSLCertificateFile: file '/usr/local/etc/letsencrypt/liv...
/usr/local/etc/rc.d/apache24: WARNING: failed to start a...
root@blackcube:~:25_01_18:9:02 #
root@blackcube:~:25_01_18:9:03 #
root@blackcube:~:25_01_18:9:03 # apachectl start
Performing sanity check on apache24 configuration:
httpd: Syntax error on line 528 of /usr/local/etc/apache...
Starting apache24.
httpd: Syntax error on line 528 of /usr/local/etc/apache...
/usr/local/etc/rc.d/apache24: WARNING: failed to start a...
root@blackcube:~:25_01_18:9:04 #
root@blackcube:~:25_01_18:9:12 #
root@blackcube:~:25_01_18:9:12 #
root@blackcube:~:25_01_18:9:12 # apachectl start
Performing sanity check on apache24 configuration:
Syntax OK
Starting apache24.
root@blackcube:~:25_01_18:9:12 # certbot certonly --webr...
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for www.smb.net
Successfully received certificate.
Certificate is saved at: /usr/local/etc/letsencrypt/live...
Key is saved at: /usr/local/etc/letsencrypt/live...
This certificate expires on 2025-04-17.
These files will be updated when the certificate renews.
NEXT STEPS:
- The certificate will need to be renewed before it expi...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
If you like Certbot, please consider supporting our work...
* Donating to ISRG / Let's Encrypt: https://letsencry...
* Donating to EFF: https://eff.org/d...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
root@blackcube:~:25_01_18:9:12 # apachectl restart
Performing sanity check on apache24 configuration:
httpd: Syntax error on line 529 of /usr/local/etc/apache...
root@blackcube:~:25_01_18:9:14 # apachectl restart
Performing sanity check on apache24 configuration:
AH00526: Syntax error on line 23 of /usr/local/etc/apach...
SSLCertificateFile: file '/usr/local/etc/letsencrypt/liv...
root@blackcube:~:25_01_18:9:15 #
root@blackcube:~:25_01_18:9:16 #
root@blackcube:~:25_01_18:9:16 #
root@blackcube:~:25_01_18:9:16 # apachectl restart
Performing sanity check on apache24 configuration:
Syntax OK
Stopping apache24.
Waiting for PIDS: 9324.
Performing sanity check on apache24 configuration:
Syntax OK
Starting apache24.
root@blackcube:~:25_01_18:9:16 #
1009 9:02 cd
1010 9:02 certbot certonly --webroot -w /usr/local/...
1011 9:02 apachectl start
1012 9:04 apachectl start
1013 9:12 apachectl start
1014 9:12 certbot certonly --webroot -w /usr/local/...
1015 9:14 apachectl restart
1016 9:15 apachectl restart
1017 9:16 apachectl restart
/usr/local/etc/postfix/main.cf を編集
myhostname = blackcube.smb.net
/usr/local/etc/apache24/httpd.conf
ServerName sun1.smb.net:80
/usr/local/etc/munin/munin.conf
# a simple host tree
[sun1.smb.net]
address 127.0.0.1
use_node_name yes
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
終了行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*FQDN を変更する [#o989c3b4]
サーバダウンのため、急遽予備サーバのFQDNを変更することに...
例えば www.smb.net というウエブサーバがダウン、sun1.smb.n...
sun1.smb.net/etc/rc.conf の2行をwww.smb.netの値に変更
hostname="blackcube.smb.net"
ifconfig_em1="inet 219.117.246.201 netmask 0xffffffe0"
再起動する。 www.smb.net へアクセスするもSSL証明書が元の...
以下編集中
1001 8:36 cd /usr/local/etc
1002 8:36 ll
1003 8:37 tar cvfzp letsencrypt_tar.gz letsencrypt
1004 8:37 ll
1005 8:46 cd /usr/ports/security/py-certbot
1006 8:46 make reinstall
1007 8:54 apachectl stop
1008 8:57 certbot certonly --webroot -w /usr/local/...
Stopping apache24.
Waiting for PIDS: 6238.
root@blackcube:/usr/ports/security/py-certbot:25_01_18:8...
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Enter email address (used for urgent renewal and securit...
(Enter 'c' to cancel): root@smb.net
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.4-April-3-202...
order to register with the ACME server. Do you agree?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
(Y)es/(N)o: Y
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
Would you be willing, once your first certificate is suc...
share your email address with the Electronic Frontier Fo...
partner of the Let's Encrypt project and the non-profit ...
develops Certbot? We'd like to send you email about our ...
EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
(Y)es/(N)o: Y
Account registered.
Requesting a certificate for www.smb.net
Certbot failed to authenticate some domains (authenticat...
Domain: www.smb.net
Type: connection
Detail: 219.117.246.201: Fetching http://www.smb.net/....
Hint: The Certificate Authority failed to download the t...
Some challenges have failed.
Ask for help or search for solutions at https://communit...
root@blackcube:/usr/ports/security/py-certbot:25_01_18:8...
root@blackcube:~:25_01_18:9:02 #
root@blackcube:~:25_01_18:9:02 #
root@blackcube:~:25_01_18:9:02 #
root@blackcube:~:25_01_18:9:02 # certbot certonly --webr...
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for www.smb.net
Certbot failed to authenticate some domains (authenticat...
Domain: www.smb.net
Type: connection
Detail: 219.117.246.201: Fetching http://www.smb.net/....
Hint: The Certificate Authority failed to download the t...
Some challenges have failed.
Ask for help or search for solutions at https://communit...
root@blackcube:~:25_01_18:9:02 # apachectl start
Performing sanity check on apache24 configuration:
AH00526: Syntax error on line 23 of /usr/local/etc/apach...
SSLCertificateFile: file '/usr/local/etc/letsencrypt/liv...
Starting apache24.
AH00526: Syntax error on line 23 of /usr/local/etc/apach...
SSLCertificateFile: file '/usr/local/etc/letsencrypt/liv...
/usr/local/etc/rc.d/apache24: WARNING: failed to start a...
root@blackcube:~:25_01_18:9:02 #
root@blackcube:~:25_01_18:9:03 #
root@blackcube:~:25_01_18:9:03 # apachectl start
Performing sanity check on apache24 configuration:
httpd: Syntax error on line 528 of /usr/local/etc/apache...
Starting apache24.
httpd: Syntax error on line 528 of /usr/local/etc/apache...
/usr/local/etc/rc.d/apache24: WARNING: failed to start a...
root@blackcube:~:25_01_18:9:04 #
root@blackcube:~:25_01_18:9:12 #
root@blackcube:~:25_01_18:9:12 #
root@blackcube:~:25_01_18:9:12 # apachectl start
Performing sanity check on apache24 configuration:
Syntax OK
Starting apache24.
root@blackcube:~:25_01_18:9:12 # certbot certonly --webr...
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for www.smb.net
Successfully received certificate.
Certificate is saved at: /usr/local/etc/letsencrypt/live...
Key is saved at: /usr/local/etc/letsencrypt/live...
This certificate expires on 2025-04-17.
These files will be updated when the certificate renews.
NEXT STEPS:
- The certificate will need to be renewed before it expi...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
If you like Certbot, please consider supporting our work...
* Donating to ISRG / Let's Encrypt: https://letsencry...
* Donating to EFF: https://eff.org/d...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
root@blackcube:~:25_01_18:9:12 # apachectl restart
Performing sanity check on apache24 configuration:
httpd: Syntax error on line 529 of /usr/local/etc/apache...
root@blackcube:~:25_01_18:9:14 # apachectl restart
Performing sanity check on apache24 configuration:
AH00526: Syntax error on line 23 of /usr/local/etc/apach...
SSLCertificateFile: file '/usr/local/etc/letsencrypt/liv...
root@blackcube:~:25_01_18:9:15 #
root@blackcube:~:25_01_18:9:16 #
root@blackcube:~:25_01_18:9:16 #
root@blackcube:~:25_01_18:9:16 # apachectl restart
Performing sanity check on apache24 configuration:
Syntax OK
Stopping apache24.
Waiting for PIDS: 9324.
Performing sanity check on apache24 configuration:
Syntax OK
Starting apache24.
root@blackcube:~:25_01_18:9:16 #
root@blackcube:~:25_01_18:9:18 # df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ada0p2 7.0T 1.0T 5.5T 15% /
devfs 1.0K 0B 1.0K 0% /dev
root@blackcube:~:25_01_18:10:14 #
[blackcube][ ...
Hint: The Certificate Authority failed to download the t...
Some challenges have failed.
Ask for help or search for solutions at https://communit...
root@blackcube:/usr/ports/security/py-certbot:25_01_18:8...
root@blackcube:~:25_01_18:9:02 #
root@blackcube:~:25_01_18:9:02 #
root@blackcube:~:25_01_18:9:02 #
root@blackcube:~:25_01_18:9:02 # certbot certonly --webr...
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for www.smb.net
Certbot failed to authenticate some domains (authenticat...
Domain: www.smb.net
Type: connection
Detail: 219.117.246.201: Fetching http://www.smb.net/....
Hint: The Certificate Authority failed to download the t...
Some challenges have failed.
Ask for help or search for solutions at https://communit...
root@blackcube:~:25_01_18:9:02 # apachectl start
Performing sanity check on apache24 configuration:
AH00526: Syntax error on line 23 of /usr/local/etc/apach...
SSLCertificateFile: file '/usr/local/etc/letsencrypt/liv...
Starting apache24.
AH00526: Syntax error on line 23 of /usr/local/etc/apach...
SSLCertificateFile: file '/usr/local/etc/letsencrypt/liv...
/usr/local/etc/rc.d/apache24: WARNING: failed to start a...
root@blackcube:~:25_01_18:9:02 #
root@blackcube:~:25_01_18:9:03 #
root@blackcube:~:25_01_18:9:03 # apachectl start
Performing sanity check on apache24 configuration:
httpd: Syntax error on line 528 of /usr/local/etc/apache...
Starting apache24.
httpd: Syntax error on line 528 of /usr/local/etc/apache...
/usr/local/etc/rc.d/apache24: WARNING: failed to start a...
root@blackcube:~:25_01_18:9:04 #
root@blackcube:~:25_01_18:9:12 #
root@blackcube:~:25_01_18:9:12 #
root@blackcube:~:25_01_18:9:12 # apachectl start
Performing sanity check on apache24 configuration:
Syntax OK
Starting apache24.
root@blackcube:~:25_01_18:9:12 # certbot certonly --webr...
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for www.smb.net
Successfully received certificate.
Certificate is saved at: /usr/local/etc/letsencrypt/live...
Key is saved at: /usr/local/etc/letsencrypt/live...
This certificate expires on 2025-04-17.
These files will be updated when the certificate renews.
NEXT STEPS:
- The certificate will need to be renewed before it expi...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
If you like Certbot, please consider supporting our work...
* Donating to ISRG / Let's Encrypt: https://letsencry...
* Donating to EFF: https://eff.org/d...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
root@blackcube:~:25_01_18:9:12 # apachectl restart
Performing sanity check on apache24 configuration:
httpd: Syntax error on line 529 of /usr/local/etc/apache...
root@blackcube:~:25_01_18:9:14 # apachectl restart
Performing sanity check on apache24 configuration:
AH00526: Syntax error on line 23 of /usr/local/etc/apach...
SSLCertificateFile: file '/usr/local/etc/letsencrypt/liv...
root@blackcube:~:25_01_18:9:15 #
root@blackcube:~:25_01_18:9:16 #
root@blackcube:~:25_01_18:9:16 #
root@blackcube:~:25_01_18:9:16 # apachectl restart
Performing sanity check on apache24 configuration:
Syntax OK
Stopping apache24.
Waiting for PIDS: 9324.
Performing sanity check on apache24 configuration:
Syntax OK
Starting apache24.
root@blackcube:~:25_01_18:9:16 #
1009 9:02 cd
1010 9:02 certbot certonly --webroot -w /usr/local/...
1011 9:02 apachectl start
1012 9:04 apachectl start
1013 9:12 apachectl start
1014 9:12 certbot certonly --webroot -w /usr/local/...
1015 9:14 apachectl restart
1016 9:15 apachectl restart
1017 9:16 apachectl restart
/usr/local/etc/postfix/main.cf を編集
myhostname = blackcube.smb.net
/usr/local/etc/apache24/httpd.conf
ServerName sun1.smb.net:80
/usr/local/etc/munin/munin.conf
# a simple host tree
[sun1.smb.net]
address 127.0.0.1
use_node_name yes
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
ページ名: