letsencrypt certificate expired and I am having problems renewing it. Suggestions would be greatly appreciated. Been trying to trouble shoot this since the certificated expired on Jan 7th 2019.
Ref: Ubuntu 18.x
Openacs 5-9-1
NaviServer/4.99.17 (tar-4.99.17)
Here is what I have done thus far with no success.
All commands executed as root using sudo -s
cd /usr/local/src/modules/letsencrypt
Makefile install
the output file this was:
/usr/local/ns/bin/install-sh -c letsencrypt.tcl /usr/local/ns//pages/
cd /var/www/5-9/packages/acs-subsite/www/admin
cp -rp /usr/local/ns/pages/letsencrypt.tcl .
edit letsencrypt.tcl - added ID, password and made sure flag was set to 1.
chown nsadmin:nsadmin letsencrypt.tcl
copied and rename my .pem file
cd /var/www/5-9/etc
cp /home/letsencrypt/certs/a21.highlandpiping.com/server.pem
/var/www/5-9/etc/certfile.pem
verified chown was correct.
edited /usr/local/ns/config-5-9.tcl
change this line. commented out
# ns_param certificate /home/letsencrypt/certs/a21.highlandpiping.com/server.pem
added this line:
ns_param certificate $serverroot/etc/certfile.pem
verified$serverroot value was /var/www/5-9
saved config-5-9.tcl file.
Stopped nas processes.
Started nas processes.
Had to disable my secured browser.
in the browser type
https://a21.highlandpiping.com/admin/letsencrypt.tcl
I was prompt for my openacs ID and password. Then I was prompt for the letsencrypt.tcl file ID and password.
I received the same error that was reported by Jim Lynch
see error message below.
verified access to letsencrypt servers and their port from my openacs webserver.
Error I received:
can't connect to acme-v01.api.letsencrypt.org port 443: network is unreachable
while executing
"ns_http queue $url"
(procedure ":getAPIurls" line 7)
invoked from within
":getAPIurls $config"
(procedure "getCertificate" line 39)
invoked from within
"$c getCertificate"
("uplevel" body line 756)
invoked from within
"uplevel {
#
# letsencrypt.tcl --
#
# A small Let's Encrypt client for NaviServer implemented in Tcl.
# To use it, set enabled to 1 and drop it..."
(procedure "code::tcl::/web/mu-main//packages/acs-subsite/www/admin/lets..." line 2)
invoked from within
"code::tcl::$__adp_stub"
("uplevel" body line 12)
invoked from within
"uplevel {
if { [file exists $__adp_stub.tcl] } {
# ensure that data source preparation procedure exists and is up-to-date
..."
(procedure "adp_prepare" line 2)
invoked from within
"adp_prepare"
invoked from within
"template::adp_parse $themed_template {}"
(procedure "adp_parse_ad_conn_file" line 14)
invoked from within
"$handler"
("::try" body line 3)
invoked from within
"rp_serve_concrete_file [ad_conn file]"
(procedure "::nsf::procs::rp_serve_abstract_file" line 60)
invoked from within
"rp_serve_abstract_file "$root/$extra_url""
("::try" body line 2)
invoked from within
"ad_try {
rp_serve_abstract_file "$root/$extra_url"
set ::tcl_url2file([ad_conn url]) [ad_conn file]
set ::tcl_url2..."
(procedure "rp_handle_request" line 45)
invoked from within
"rp_handle_request"
("::try" body line 2)