Getting an error when running letsencrypt.sh

My domain is: 57.128.171.158

I ran this command: ./letsencrypt.sh

It produced this output:Domain Name: 57.128.171.158
Email Address: mujtabaahmed5358@gmail.com
Cloning into 'dehydrated'...
remote: Enumerating objects: 2370, done.
remote: Counting objects: 100% (223/223), done.
remote: Compressing objects: 100% (103/103), done.
remote: Total 2370 (delta 135), reused 196 (delta 119), pack-reused 2147
Receiving objects: 100% (2370/2370), 906.02 KiB | 6.76 MiB/s, done.
Resolving deltas: 100% (1488/1488), done.

INFO: Using main config file /etc/dehydrated/config

  • Account already registered!

INFO: Using main config file /etc/dehydrated/config

Details:
HTTP/2 400
server: nginx
date: Tue, 27 Feb 2024 12:35:44 GMT
content-type: application/problem+json
content-length: 134
cache-control: public, max-age=0, no-cache
link: https://acme-v02.api.letsencrypt.org/directory;rel="index"
replay-nonce: 3iiYN4u41ng-eBCgytLw6yov74mB-SXImWrG_CvsN3f1R5xCKok

{
"type": "urn:ietf:params:acme:error:accountDoesNotExist",
"detail": "No account exists with the provided key",
"status": 400
}

2024/02/27 12:35:44 [emerg] 116359#116359: cannot load certificate "/etc/dehydrated/certs/https://57.128.171.158/fullchain.pem": BIO_new_file() failed (SSL: error:80000002:system library::No such file or directory:calling fopen(/etc/dehydrated/certs/https://57.128.171.158/fullchain.pem, r) error:10000080:BIO routines::no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed
cat: /etc/dehydrated/certs/57.128.171.158/fullchain.pem: No such file or directory
cat: /etc/dehydrated/certs/57.128.171.158/privkey.pem: No such file or directory
cp: cannot stat '/etc/dehydrated/certs/57.128.171.158/cert.pem': No such file or directory
cp: cannot stat '/etc/dehydrated/certs/57.128.171.158/chain.pem': No such file or directory
cp: cannot stat '/etc/dehydrated/certs/57.128.171.158/fullchain.pem': No such file or directory
cp: cannot stat '/etc/dehydrated/certs/57.128.171.158/privkey.pem': No such file or directory

My web server is (include version):

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

My hosting provider, if applicable, is:

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):

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

Hi @CSCuser, and welcome to the LE community forum :slight_smile:

Let's Encrypt does not [yet] issue certificates for IP addresses.
You would need to request a cert with an actual Internet domain name.

3 Likes

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