Adding items to Portal for ArcGIS and saving the credentials fail when the service is accessed over an HTTPS connection which uses TLS 1.3. The web server requires Server Name Indication, and the web server's certificate does not include the hostname of the machine in Subject Alternative Name when it does not use Server Name Indication.