ValueError: Unable to set value to path!

Unable to deploy ssl certificate, not seeing what I am missing.

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: thepowerhousemethod.org

I ran this command: selected thepowerhousemethod.org and www.thepowerhousemethod.org after sudo certbot

It produced this output:

31: thepowerhousemethod.org
32: www.thepowerhousemethod.org

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 31 32

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
You have an existing certificate that contains a portion of the domains you
requested (ref: /etc/letsencrypt/renewal/thepowerhousemethod.org.conf)

It contains these names: thepowerhousemethod.org

You requested these names for the new certificate: www.thepowerhousemethod.org,
thepowerhousemethod.org.

Do you want to expand and replace this existing certificate with the new
certificate?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(E)xpand/(C)ancel: e
Renewing an existing certificate for www.thepowerhousemethod.org and thepowerhousemethod.org
Performing the following challenges:
http-01 challenge for www.thepowerhousemethod.org
Waiting for verification...
Cleaning up challenges
Created an SSL vhost at /etc/httpd/conf.d/thepowerhousemethod.org-le-ssl.conf
Deploying Certificate to VirtualHost /etc/httpd/conf.d/thepowerhousemethod.org-le-ssl.conf
An unexpected error occurred:
ValueError: Unable to set value to path!
Please see the logfiles in /var/log/letsencrypt for more details.

IMPORTANT NOTES:
 - Unable to install the certificate
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/thepowerhousemethod.org/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/thepowerhousemethod.org/privkey.pem
   Your certificate will expire on 2023-03-10. To obtain a new or
   tweaked version of this certificate in the future, simply run
   certbot again with the "certonly" option. To non-interactively
   renew *all* of your certificates, run "certbot renew"
 - Some rewrite rules copied from
   /etc/httpd/conf.d/thepowerhousemethod.org.conf were disabled in the
   vhost for your HTTPS site located at
   /etc/httpd/conf.d/thepowerhousemethod.org-le-ssl.conf because they
   have the potential to create redirection loops.

My web server is (include version): apache2

The operating system my web server runs on is (include version): rhel

My hosting provider, if applicable, is: godaddy

I can login to a root shell on my machine (yes or no, or I don't know): yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel): no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): certbot 1.11.0

[Neptune@0rcan0mic conf.d]$ cat thepowerhousemethod.org-le-ssl.conf

<IfModule mod_ssl.c>
<VirtualHost *:443>
        ServerName thepowerhousemethod.org
        ServerAdmin webmaster@localhost
        ServerAlias www.thepowerhousemethod.org
	DocumentRoot /var/www/thepowerhousemethod.org/public_html/
        ErrorLog /var/log/httpd/thepowerhousemethod.org-error.log
        CustomLog /var/log/httpd/thepowerhousemethod.org-access.log combined
	DirectoryIndex index.html

        <Directory "/var/www/thepowerhousemethod.org/public_html">
        DirectoryIndex index.html
#       AllowOverride All
#Options Indexes FollowSymLinks Includes ExecCGI
#AllowOverride None
#Allow from all
        </Directory>
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/thepowerhousemethod.org/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/thepowerhousemethod.org/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/thepowerhousemethod.org/chain.pem
</VirtualHost>

I noted I was missing the ServerAlias in the .ssl.conf file so I added it, reran sudo cerbot installed ssl successfully but thepowerhousemethod.org is still showing insecure

elect the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 31 32
Cert not yet due for renewal

You have an existing certificate that has exactly the same domains or certificate name you requested and isn't close to expiry.
(ref: /etc/letsencrypt/renewal/thepowerhousemethod.org.conf)

What would you like to do?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: Attempt to reinstall this existing certificate
2: Renew & replace the certificate (may be subject to CA rate limits)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 1
Keeping the existing certificate
Deploying Certificate to VirtualHost /etc/httpd/conf.d/thepowerhousemethod.org-le-ssl.conf
Deploying Certificate to VirtualHost /etc/httpd/conf.d/thepowerhousemethod.org-le-ssl.conf
Enhancement redirect was already set.
Enhancement redirect was already set.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations! You have successfully enabled
https://www.thepowerhousemethod.org and https://thepowerhousemethod.org
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

IMPORTANT NOTES:
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le

Let's review which certificates are being handled by certbot [and what names they cover], with:
certbot certificates

Then, since we are talking about Apache, let's review the web servers' config, with:
apachectl -t -D DUMP_VHOSTS

2 Likes

Neptune@0rcan0mic conf.d]$ sudo certbot certificates
[sudo] password for Neptune:
Sorry, try again.
[sudo] password for Neptune:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
OCSP check failed for /etc/letsencrypt/live/orcacomputers.com/cert.pem (are we offline?)
OCSP check failed for /etc/letsencrypt/live/www.jesusjesse.org/cert.pem (are we offline?)


Found the following certs:
Certificate Name: orcacomputers.com
Serial Number: 3dec298987c32fdeadddbb414c12af3aba1
Key Type: RSA
Domains: orcacomputers.com www.orcacomputers.com
Expiry Date: 2023-02-09 23:38:18+00:00 (VALID: 61 days)
Certificate Path: /etc/letsencrypt/live/orcacomputers.com/fullchain.pem
Private Key Path: /etc/letsencrypt/live/orcacomputers.com/privkey.pem
Certificate Name: thepowerhousemethod.org
Serial Number: 407e3539ef037f121a4937238ccaef1df5d
Key Type: RSA
Domains: www.thepowerhousemethod.org thepowerhousemethod.org
Expiry Date: 2023-03-10 01:04:41+00:00 (VALID: 89 days)
Certificate Path: /etc/letsencrypt/live/thepowerhousemethod.org/fullchain.pem
Private Key Path: /etc/letsencrypt/live/thepowerhousemethod.org/privkey.pem
Certificate Name: www.jesusjesse.org
Serial Number: 4dcbcd57ba5e4efc175ce3cb4744b62d0f4
Key Type: RSA
Domains: www.jesusjesse.org jesusjesse.org
Expiry Date: 2023-02-26 02:40:01+00:00 (VALID: 77 days)
Certificate Path: /etc/letsencrypt/live/www.jesusjesse.org/fullchain.pem
Private Key Path: /etc/letsencrypt/live/www.jesusjesse.org/privkey.pem
Certificate Name: www.oceanahomes.org
Serial Number: 48327bb21e88a704fb7ddbf2436a6d1d638
Key Type: RSA
Domains: www.oceanahomes.org oceanahomes.org
Expiry Date: 2023-03-09 00:58:18+00:00 (VALID: 88 days)
Certificate Path: /etc/letsencrypt/live/www.oceanahomes.org/fullchain.pem
Private Key Path: /etc/letsencrypt/live/www.oceanahomes.org/privkey.pem


[Neptune@0rcan0mic conf.d]$ apachectl -t -D DUMP_VHOSTS
Passing arguments to httpd using apachectl is no longer supported.
You can only start/stop/restart httpd using this script.
If you want to pass extra arguments to httpd, edit the
/etc/sysconfig/httpd config file.
AH00526: Syntax error on line 18 of /etc/httpd/conf.d/oceanahomes.org-le-ssl.conf:
SSLCertificateFile: file '/etc/letsencrypt/live/www.oceanahomes.org/cert.pem' does not exist or is empty
[Neptune@0rcan0mic conf.d]$ pwd
/etc/httpd/conf.d
[Neptune@0rcan0mic conf.d]$ httpd -t -D DUMP_VHOSTS
AH00526: Syntax error on line 18 of /etc/httpd/conf.d/oceanahomes.org-le-ssl.conf:
SSLCertificateFile: file '/etc/letsencrypt/live/www.oceanahomes.org/cert.pem' does not exist or is empty
[Neptune@0rcan0mic conf.d]$ pwd
/etc/httpd/conf.d
[Neptune@0rcan0mic conf.d]$ sudo vim oceanahomes.org-le-ssl.conf
[Neptune@0rcan0mic conf.d]$

The certs look good :slight_smile:

Try:
sudo apachectl -t -D DUMP_VHOSTS

3 Likes

Are you hosting this on a home connection? If so, on your port forwarding setup, do you have external port 443 forwarding to port 443 on your internal host?

3 Likes

Negative, this is a Bare Metal Server though.
Using rhel firewalld for security, modem in bridge mode from ISP.

right? Okay, so cert does look good.
I don't understand why www.thepowerhousemethod.org shows as not secure if the cert is good.

There is a problem with your web server configuration.
As shown by:

curl -Ii https://www.thepowerhousemethod.org
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number

-Ii http://www.thepowerhousemethod.org:443
HTTP/1.1 200 OK
Date: Sun, 11 Dec 2022 07:28:02 GMT
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16
Last-Modified: Sat, 10 Dec 2022 02:48:34 GMT
ETag: "1032-5ef704e6873cc"
Accept-Ranges: bytes
Content-Length: 4146
Content-Type: text/html; charset=UTF-8

AND:
SSL Server Test: www.thepowerhousemethod.org (Powered by Qualys SSL Labs)

I repeat myself [only once]:

3 Likes

sudo httpd -t -D DUMP_VHOSTS

port 443 namevhost thepowerhousemethod.org (/etc/httpd/conf.d/thepowerhousemethod.org-le-ssl.conf:2)
alias www.thepowerhousemethod.org

port 80 namevhost thepowerhousemethod.org (/etc/httpd/conf.d/thepowerhousemethod.org.conf:1)
alias www.thepowerhousemethod.org

Just to exclude networking issue vs webserver configuration issue, does this succeed?

curl -I --resolve thepowerhousemethod.org:443:127.0.0.1 https://thepowerhousemethod.org
3 Likes

Was that the entire output?
If not, please show it.
If so, then we need to look at this file:

2 Likes

No. I am working on a separate thread for this same person. Started as different symptoms but now converging to the same.

For entire VHost dump see:

Also see extra diagnostic info on post #12 in that thread

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.