mirror of
https://github.com/sg4r/proxmox-backup-client.git
synced 2026-04-26 07:55:49 +03:00
[GH-ISSUE #11] Unable to get local issuer certificate when the server is using Letsencrypt #12
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmox-backup-client#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Naolador on GitHub (Feb 23, 2021).
Original GitHub issue: https://github.com/sg4r/proxmox-backup-client/issues/11
OS: CentOS 7
Client version: 1.0.6
When I was trying to run the backup, it returns the following error:
I think therer's something wrong in the statem_clnt.c file when trying to read the certificate. Here's the file:
I tried to comment those lines out, but still giving the same error. I think it needs recompile?
@sg4r commented on GitHub (Feb 23, 2021):
hi, you can use my first rpm release for Centos7 or Centos8
https://github.com/sg4r/proxmox-backup-client/releases/tag/v1.0.6-beta
can you check it ?
the rpm file are in Assets from release
@Naolador commented on GitHub (Feb 23, 2021):
Hi @sg4r I'm still getting the same error. I'm using fullchain on the pbs server for the cert file as suggested by proxmox. Is that working on your machine?
@sg4r commented on GitHub (Feb 24, 2021):
hi, sorry, I am not using Letsencrypt certificates.
we should check if the problem also exists from a debian client, and if so, report the problem to the pbs developer.
if the problem is only for the CentOS client, it would be necessary to review the part of the code to fix it.
@Naolador commented on GitHub (Feb 25, 2021):
It works on Debian10, so I think it's the client code issue.
@sg4r commented on GitHub (Feb 25, 2021):
Thank you for the feedback.
is it possible to indicate the version of the client under debian ?
@Naolador commented on GitHub (Feb 25, 2021):
1.0.8
@sg4r commented on GitHub (Feb 25, 2021):
ok, i will look to support version 1.0.8 or higher
@Naolador commented on GitHub (Feb 25, 2021):
Much appreciated!
@sg4r commented on GitHub (Apr 5, 2021):
hi, it's corrected.
can you test build and client version v1.0.11 please
@Naolador commented on GitHub (Apr 6, 2021):
Hi @sg4r the rpm can be installed, however, it's complaining glibc 2.18 missing due to CentOS7 doesn't support this version.
Tried this way https://serverfault.com/questions/894625/safely-upgrade-glibc-on-centos-7 doesn't work, even by adding the variable before the command instead of export
@sg4r commented on GitHub (Apr 6, 2021):
hi,
Centos8 client can be found at https://github.com/sg4r/proxmox-backup-client/releases/tag/v1.0.11
for Centos7, i must add support for OpenSSL 1.1.0
https://docs.rs/openssl/0.9.24/openssl/pkcs5/fn.scrypt.html
by default Centos7 have version 1.0 only
[centos@pbs proxmox-backup]$ openssl version -a
OpenSSL 1.0.2k-fips 26 Jan 2017
i need to check if it works with this https://cloudwafer.com/blog/installing-openssl-on-centos-7/
@sg4r commented on GitHub (Apr 7, 2021):
hi, i have build version for centos7. rpm package are at https://github.com/sg4r/proxmox-backup-client/releases/tag/v1.0.11
can you test client version v1.0.11 please ?
@Naolador commented on GitHub (Apr 8, 2021):
hi @sg4r I replaced the new package you provided and it's not complaining glibc version mismatch anymore. However, I'm still facing the same SSL error as I posted at the beginning ☹
I'm wondering if it works on your testing environment with Let's encrypt enabled?
@sg4r commented on GitHub (Apr 8, 2021):
hi, is it possible to indicate the recipe of the commands to use so that I can test this operation on my side.
on my platform I use the backup from clients under centos7 and proxmox-backup-client backup home.pxar:/home/ --repository root@pam@pbsserver:datastore
is it possible to tell me the procedure from the pbs documentation
Thank you
@Naolador commented on GitHub (Apr 9, 2021):
Hi, @sg4r I'm using the API token and trigger the backup with a script in the client. The backup script is something looks like this:
@eduardpalomo commented on GitHub (Apr 15, 2021):
Hi @sg4r, I also have the same problem, before implementing the letsencrypt ssl everything worked fine, but when I started using letsencrypt on the server, the backups of the physical hosts stopped working with the TLS error
@wmorgue commented on GitHub (May 5, 2021):
CentOS 7.
Installed a
https://github.com/sg4r/proxmox-backup-client/releases/download/v1.0.11/proxmox-backup-1.0.11-1.2.x86_64.el8.rpmand got error:@Tim-NL commented on GitHub (May 5, 2021):
I installed this on CloudLinux 8 (RHEL 8 based) - So 1:1 compatible with CentOS 8 as well. And it worked great. My backup server uses Let's Encrypt for its certificates and I had no issues with connecting to it. All comments are about CentOS 7, but the latest builds did resolve the issue for me. I was not able to use it with Let's Encrypt on CentOS 8 in the past (a few weeks ago) but now it works great. So the latest changes did resolve some issues.
-Tim
@wmorgue commented on GitHub (May 5, 2021):
What version did you install for CentOS 7?
@Tim-NL
@Tim-NL commented on GitHub (May 5, 2021):
I did not use/try CentOS 7, only CentOS 8 (and CloudLinux 8/RHEL 8). - I just replied to let the author know that their changes did resolve the issue for me on CentOS 8.
-Tim
@sg4r commented on GitHub (May 10, 2021):
hi , thanks for the feedback on this point. I'm not sure it's a code issue, but openssl certificate recognition
for REDHAT 7.x ou CentOS 7.x you can try yum reinstall ca-certificates or add the ca certificate in the simple PEM or DER file formats to the list of CAs trusted on the system:
Download Active PEM certificate from: https://letsencrypt.org/certificates/ to the /etc/pki/ca-trust/source/anchors/ subdirectory, and run the update-ca-trust command.
@francescor commented on GitHub (Jan 15, 2022):
I tried the above, but lost a lot of time... the fix is the suggestion in https://github.com/sg4r/proxmox-backup-client/issues/16
@sg4r commented on GitHub (Jan 23, 2022):
hi, you can find centos7 proxmox-backup-client version 2.1.2 rpm at https://github.com/sg4r/proxmox-backup-client/releases/tag/v2.1.2
you can check it ?