[SOLVED] SubjectAltNameWarning

Questions about WAPT Server / Requests and help related to the WAPT server
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
lowix
Messages: 24
Registration: Apr 02, 2017 - 5:59 p.m.

May 23, 2019 - 09:55

- Installed WAPT version: 1.7.4
- Server OS: Linux
- Operating system of the administration/package creation machine: Windows 10

Good morning,
Since I applied the 1.7.4 update, I get this warning message when a package is installed:

Code: Select all

C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connection.py:362: SubjectAltNameWarning: Certificate for srv-wapt15.iut-acy.local has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.)
  SubjectAltNameWarning

It's not a major issue, but I'd like to understand and resolve it…
Thank you for your answers
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 23, 2019 - 1:59 PM

Hello,

this is just a warning.

In older versions of WAPT, we generated a self-signed certificate during installation without the "subjectAltName" attribute.

And as the message indicates, based on RFC 2818, a certificate without "subjectAltName" is not supported by RFC 2818.

We need to post a procedure to renew and regenerate this certificate without any side effects. :?

If your WAPT agent is configured not to verify the HTTPS certificate, then it will be simple; otherwise, we need to create a procedure.

Simon
crismatinfo
Messages: 3
Registration: Apr 29, 2020 - 2:27 p.m.

June 9, 2022 - 12:11

Hello,
I just joined the forum following the JRES Marseille conference.
I'm having the problem of the message "SubjectAltNameWarning: Certificate for 'my server' has no `subjectAltName`" because I had version 1.7 which I upgraded to 2.2. Before buying my 200 licenses, I'd like to resolve this small issue. :D

sfonteneau, you said, "We should post a procedure to renew and regenerate this certificate without any side effects. :?
"
Q: Does such a procedure exist?

Thank you for your help,
Eric
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

June 13, 2022 - 11:53

Hello,

I wrote a procedure here that still works:
https://lists.wapt.fr/pipermail/wapt/20 ... 03795.html

Are you correctly verifying your HTTPS certificate?

Simon Fonteneau
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

June 13, 2022 - 1:34 PM

Hello,

FYI, I am also in this situation.
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

June 13, 2022 - 2:33 PM

Did Simon's solution solve your problem?

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

August 17, 2022 - 2:08 PM

Hello,

I just tested the procedure provided by Simon and something is puzzling me!

After restarting the post-configuration, the name of the .crt file generated in the /root/ folder doesn't match the server's FQDN.
The .crt file name is identical to the name of the .crt file located in my c:\private folder on my administration machine.
However, in the C:\Program Files (x86)\wapt\ssl\server\ folder, I do have a .crt file with the server's FQDN!
I still followed the procedure and deployed the new agent on a test machine. The problem is still not solved...

Any ideas?

Thanks
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

August 17, 2022 - 3:42 PM

Hi,

where are you in the process?

You mention /root, but the procedure specifies a new and old folder.
You also mention c:\private; be aware that this certificate has nothing to do with package creation, it's solely the HTTPS certificate.
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

August 17, 2022 - 4:09 PM

My mistake, I think I misinterpreted the `cat` command due to my limited Linux knowledge (the presence of another `crt` file in the root directory misled me).

I just repeated the procedure, and if I understand correctly, the `cat` command creates a new `crt` file and doesn't modify an existing one.
Once the `srvwapt.mydomain.lan.crt` file is generated, I copy it to my administration machine in the folder `C:\Program Files (x86)\wapt\ssl\server\srvwapt.mydomain.lan.crt` and then generate a new client from the console. I deploy it to a test machine and I still get the `SubjectAltNameWarning` error when simply typing the command `wapt-get update`.
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

August 17, 2022 - 5:17 PM

If the old certificate on the server is in /opt/wapt/waptserver/ssl/, that's normal;

if the new one is in /opt/wapt/waptserver/ssl/, that's not normal

(remember to restart nginx).
Locked