Ravindra BagaleCourses & study guides मराठी Track your progress

Chapter 9: Domain Names, DNS and Subdomains

AWS Cloud

9.11 HTTPS for your domain and subdomains

Friends, start with the list of exact HTTPS names you want to serve. Find the listener that will present the certificate, choose an approved way to prove control of each name, and then test the certificate and page from the visitor’s address.

In an authorized public practice environment, choose the current Certbot plugin for your web server or DNS service. Installation plugins can edit active server configuration. certbot certificates reports certificates managed by that installation, and certbot renew --dry-run can exercise the configured renewal path in staging when approved. The local lab below needs no Certbot or live server changes.

For Let’s Encrypt HTTP-01, every requested name must serve the challenge through its applicable public frontend, starting on port 80. DNS-01 uses a specific TXT response under _acme-challenge and is required for Let’s Encrypt wildcard certificate orders. The chosen validation method and public HTTPS listener have different jobs.

Ravindra Bagale's Tip

Match your checks to the validation method before requesting a certificate. With HTTP-01, check both published address families and the actual challenge path. With DNS-01, verify the required TXT value in the active authority. After installation, inspect the certificate served for every public HTTPS name.

Lab

Use the local HTTPS fixture below to compare an explicit name, a wildcard match, a wrong name and an unknown issuer. Note which comparisons reach the catalog page. The fixture creates its own short-lived certificate and removes it at the end.

Give customers a private connection to the right dairy site

A Mauli Dairy customer clicks the pickup link from a receipt and sees a browser warning. The name looks correct, and it was working yesterday. The cashier asks whether the public address changed. The web administrator sees the homepage from an internal machine. Both observations can be true. The browser must complete an identity check and establish an encrypted channel to the requested hostname before the application can return its page. An address can be right while the certificate at that address is wrong.

Start with the promise the dairy actually needs to make. The customer submits a pickup name and order number using the same address advertised on the receipt. The customer expects other people sharing the surrounding network to be unable to read or change the request in transit. They also expect the connection to reach the service identified by that advertised name. HTTPS is HTTP carried over TLS, which stands for Transport Layer Security. TLS protects a connection in transit and can authenticate the service identified by the address. The application still decides who can see each order and what to do with the data after it has arrived.

You can read the URL as a set of instructions. In https://www.dairy.example.test/pickup, the https scheme asks for a secure HTTP connection, the host supplies the exact name to find and verify, and /pickup identifies the page or resource being requested. Port 443 is the default for HTTPS when the URL does not specify a different port. A hostname is the name part of that address. The domain team might call the site “the dairy,” but the browser compares the actual hostname string with the certificate names.

Draw three boxes on paper. In the first box write the name from the receipt and the address returned by DNS. In the second write the service taking the secure connection and the names on its certificate. In the last write the page or status the application should return. Each box answers a different question. Someone saying “DNS works” has evidence for the first box. Someone saying “I see the pickup marker over validated HTTPS” has evidence that the requested name and route worked on that tested connection.

Use the same scenario throughout. The dairy publishes a main site, a www address that redirects to it, and one active collection service named east.pickup. A team member suggests the printed QR code use the www address so it looks familiar. Put all three advertised names on your checklist. Every address a customer initially visits over HTTPS has to complete TLS, including a name whose only response is a redirect.

Follow a request from its name to the page

The browser first needs an address for its network connection. It can reuse information it already has or ask through a DNS resolver. The A and AAAA records carry IPv4 and IPv6 addresses. Aliases and managed frontends can provide additional ways to find the destination. Once the client has an address, it tries to connect to the appropriate port at that destination. A refused or timed-out connection can happen before the server has had any chance to show a certificate.

During an ordinary fresh connection, TLS negotiation begins after the network path is available. A client can send the intended hostname as part of the TLS setup using an extension called Server Name Indication, or SNI. The listener can use that name to select a certificate when several sites share the same address. The listener is the service configured to accept connections on a port. One frontend can therefore present different certificates for the dairy catalog and a separate unrelated service on the same IP address.

The client verifies the presented certificate against its expected name and certificate trust rules. It also checks whether the certificate is within its validity dates. The server demonstrates possession of the relevant private key during the handshake. The handshake is the early exchange that establishes how the parts of the secure connection will work. Once the secure connection is established in this example, the client can send the HTTP request, including its host and path, and the server can select the route.

The two appearances of the name have separate jobs. The TLS layer uses the hostname to help select and verify a certificate. The HTTP layer uses the request information after that secure channel exists to choose the application or site. A student who connects to an IP and manually rewrites an HTTP Host header has not simulated the browser’s original HTTPS URL. The certificate can be selected or checked for the IP before that header reaches anyone. Use a test that keeps the advertised hostname in the URL and overrides just its address when you need to isolate that behavior.

Consider a real-looking failure sequence with reserved practice names. The address for www.dairy.example.test points to the planned frontend. Port 443 responds. The frontend has a default certificate for its catalog with only dairy.example.test on it. A request for the www name can stop at the identity check. An HTTP redirect to the bare name that someone placed in the site configuration is never reached by that client. Give the www listener name acceptable certificate coverage, then confirm its redirect status and destination separately.

Some connections reuse an earlier secure session or use a different HTTP transport. The practical test remains the same. Check where this exact URL goes, which public certificate the visitor encounters, and which application response follows. When a recording says there was an HTTP 404, that tells you an HTTP responder returned a status. A client reporting an identity failure with no HTTP response stopped earlier. Those are different incidents even if both are displayed to the user as a failed page load.

Read names, dates and trust on a certificate

A public certificate is a signed document describing a public key and the identities for which it is intended. The server’s private key is separate and confidential. You can send someone the public certificate to help them identify an expiration or inspect its names. Keep the private key within the service’s access boundary. Someone who obtains the private key has acquired something different from someone who has just seen the certificate a browser receives. Operational notes should never include private key contents.

The certificate entries for names are typically in a field called Subject Alternative Name, or SAN. Read that field when you check coverage. An older tutorial might tell you to look only at the Common Name, often written CN. Current service-identity guidance specifies the certificate’s appropriate SAN entries as the identity source. If a certificate lists dairy.example.test and www.dairy.example.test as DNS names, the two can both be covered by that certificate. A bare name, its www name, and a third name used for an API are still separate requested names.

A wildcard DNS identity such as *.pickup.dairy.example.test describes a single full leftmost label. The wildcard in this example can match east.pickup.dairy.example.test or west.pickup.dairy.example.test. It does not include pickup.dairy.example.test itself. A deeper name such as north.east.pickup.dairy.example.test has two labels before that suffix, so it needs other appropriate coverage. DNS wildcard synthesis has different rules. A name that DNS resolves by using a wildcard A record still needs a certificate identity match.

Plan coverage for aliases and redirects the same way. A CNAME can make two hostnames find a common service address. A managed CDN can resolve to an edge address used by many customers. When the customer requests the custom name, the certificate must be acceptable for that custom name. Certificates on the provider’s own hostname only prove that hostname when used in a client URL. Attach the custom name to the provider’s appropriate listener or site configuration and verify the actual certificate it serves.

Look also at the not before and not after dates. The certificate needs to be within that interval as evaluated by the client. A newly generated file is not evidence that every frontend now serves it. An incorrect device clock can also make a valid certificate appear outside that window. Record the certificate dates you see on the live endpoint and the time of the check. If one client fails while other independent clients accept the same certificate, note both the served identity and the affected device’s clock before changing a working configuration.

Certificates are normally linked into a chain. The site delivers its leaf certificate and any intermediate certificates necessary for a client to build a chain to a root the client already trusts. The leaf is the certificate about the site. An intermediate is an issuer authorized by another issuer, and the root is the local trust anchor. A chain that works in one browser can still fail where an intermediate is not already available. Inspect what the endpoint actually sends, compare from another client, and follow the frontend’s documentation on the required certificate bundle and order.

These represent independent checks on the same public connection. A chain may be valid while its leaf belongs to a different hostname. A matching name may be presented by an issuer a normal customer’s device does not trust. All names and issuers may be correct and the leaf has expired. In your incident notes, use specific phrases such as “name mismatch for www,” “issuer chain incomplete at edge,” or “certificate expired at the public listener.” The fix depends on which observation you can actually reproduce.

Choose the place that serves the public certificate

Trace the deployment from the outside. If DNS points directly at an EC2 instance and the instance’s Nginx accepts HTTPS for the domain, then Nginx is the public TLS endpoint. The administrator configures its HTTPS listener, loads the acceptable certificate chain and key, and tests the exact named virtual host. Confirm both the web service is listening and the intended network access exists for that architecture. The presence of files on the instance tells you what can be installed there, not what a public visitor actually encounters.

If DNS points to an AWS Application Load Balancer with an HTTPS listener, the load balancer presents the certificate to the browser and terminates the frontend TLS connection. The certificate belongs on that listener. The load balancer then forwards to targets according to its rules and target-group configuration. The target leg has its own protocol and protection requirements. A private instance may receive HTTP on an approved internal path or HTTPS according to the architecture. Verify the properties of both legs against the requirements. The browser’s certificate observation proves the public connection it inspected.

Likewise, when a CDN is the public destination, check the edge service’s custom-domain configuration. An origin is the server the edge contacts for a page that it needs to retrieve from the source. The browser connects to the edge, and the edge can make another connection to the origin. Choosing the exact HTTPS identity expected by the origin-facing connection, the HTTP host it receives and the corresponding edge configuration are separate parts of that design. An internal Nginx certificate change can leave a stale edge certificate in place if the CDN is doing the public handshake.

Draw your actual topology next to the proposed names before asking for a certificate. In the first example the same web listener serves the main address and www. A multi-name certificate can fit that shared lifecycle. If pickup is a separately administered service that releases and renews independently, a separate certificate can make ownership clearer. More certificates also mean more expiry and configuration to track. Choose based on where the connections end and who can maintain each certificate through its whole lifecycle.

Include both address families in the drawing when both are advertised. Suppose IPv4 points at the current load balancer and IPv6 points at an old web server that still knows the domain but has yesterday’s expired leaf. Some people may receive the stale certificate only through the IPv6 path. Check the configured records, the listener at each intended destination, and a verified request using each supported family. Updating one Nginx certificate without learning which endpoint that family reaches will not explain the inconsistent customer reports.

Prove control of every name the issuer will cover

A public certificate authority, or CA, needs evidence that the application for a certificate represents control of the requested names. ACME is a protocol for automating that process. An ACME client such as Certbot requests a certificate, completes the validation steps required by the issuer, and can optionally install the result. Issuance produces a new certificate. Installation makes a chosen TLS listener serve it. Renewal repeats the relevant process before expiry. Separate those three tasks in your change record.

In Let's Encrypt’s HTTP-01 method, the CA tries to retrieve a challenge response from a designated path under the indicated public hostname, starting on port 80. This can suit a regular hostname on a reachable web frontend. You need the actual validation path to answer correctly through every applicable frontend path. Suppose a load balancer sends traffic to two instances and only one serves the challenge response. A local browser hitting the correct instance does not prove the validate-from-outside path works reliably. The challenge file or route has to be available where validation can arrive.

A redirect on port 80 may also change where the validator arrives. The CA documents which redirects it follows. Check the actual challenge path according to the CA and ACME plugin, especially when the site has a redirect catch-all, CDN rules or a custom application handler. An ordinary home page loading tells you little about that path. Check the name, listener, relevant address records and challenge handling before retrying a failure. HTTP-01 cannot validate a wildcard certificate request.

In DNS-01, validation uses a TXT value under an _acme-challenge name. For a wildcard requested for the pickup branch, the relevant validation name is under the base of that wildcard. DNS-01 is useful when wildcard coverage is needed or when the chosen issuance workflow needs a DNS proof rather than a public HTTP handler. Publish the prescribed proof through the actual authority. Check visibility across the intended authoritative servers, with time for any relevant cached answers or provider delays. Remove only the challenge value the workflow owns after the validation or let the configured plugin do so. Concurrent orders may have different values at a shared owner name.

Use a DNS automation identity that is approved for the specific zone or challenge update. If the deployment uses a plugin credential, keep it out of the repository, code snippets and terminal transcripts. A single long-lived credential with permission to change an entire business’s DNS zone has a larger operational consequence than scoped automation or a deliberately delegated challenge record. Use the issuer and DNS provider instructions for the supported delegation choices and record the owner of ongoing renewal.

CAA records can limit which certificate authorities can issue for names under the DNS policy. A CAA decision is part of issuance. Putting up a CAA record does not place a certificate on a listener, and deleting a restrictive record to get past a validation error can violate the service owner’s policy. Compare the intended CA and validation method with the documented authorization before changing records. If the issuer reports a policy failure, capture that error message and resolve it with the team that maintains the zone.

For the dairy, write the proposed names and validation method in two columns. A directly hosted main page and its explicit www alias may use HTTP-01 if the authorized public validation path is available. A certificate deliberately covering many first-level pickup names may use DNS-01 and include the base pickup name as an additional identity if it will also receive visitors. A provider-managed certificate on a separate cloud endpoint has its own supported validation and management workflow. Use the endpoint’s own certificate documentation before allocating browser-facing responsibilities.

Install, test and renew as separate jobs

On an approved practice site that actually owns its public names, choose the current installation instructions for the OS and web server. Read the Certbot plugin description before selecting flags. The Nginx and Apache installation plugins can obtain a certificate and modify the existing web configuration. A certificate-only operation obtains credentials for a separately managed installation. A DNS plugin or a manually created challenge has different renewal requirements. Back up the in-scope configuration and know which name and listener the plugin will edit before approving it.

Begin your check with the list of public URLs and the correct place to configure them. Use exact A and AAAA queries or your DNS provider view to confirm where each will arrive. For HTTP-01, check the actual challenge-serving path and any redirect choices from a client outside the frontend. A shared address can require distinct virtual hosts even though the addresses in DNS are the same. For DNS-01 look at the challenge’s TXT record under the appropriate authority. Those steps test different control proofs.

Separate the configuration test from the externally observed certificate. If Nginx reads the wrong path or a key does not match the configured certificate, a syntax/configuration check can catch some problems before a scoped reload. Once the approved live listener has the new files and has been reloaded as required, connect to the exact hostname from outside and record the observed chain, dates and HTTP behavior. A status alone is especially weak on a shared frontend. Look for the unique route marker or expected redirect and follow through to the final target in a separate check.

A renewal command can succeed without proving that the intended browser-facing endpoint serves the renewed file. Designate an owner for automatic renewal, confirm how it runs, and verify deployment of a newly issued chain to the listener. For an existing Certbot setup, the documented dry-run command tests the configured renewal procedure using staging. Review the configured plugins and hooks and run it where approved. A staging success is evidence about that renewal path. The browser-facing expiry check remains an independent test that you should schedule externally.

Use the actual certificate’s expiry when planning the next review. Certificate lifetimes can differ by issuer and issuance profile, and they can change over time. Avoid a reminder based on an assumed fixed number of days. Include both renewal warnings and days-until-expiry monitoring where practical. If a provider manages a certificate automatically, confirm how it maintains the proof of control, what tells you when renewal is at risk, and which deployed endpoints are using it. Keep the DNS validation data the provider requires for the ongoing process.

Write a rollback decision before introducing the new listener. The old known-good configuration and certificate can be restored within their valid windows if the new deployment breaks the route. For a reported expiry or private key disclosure, follow the incident owner’s plan and use a certificate safe for the situation. A backup does not change the old certificate’s validity or recover confidentiality after a key leak. Keep a record of where the replacement is installed, how you checked it, and when the superseded material can be retired.

When rolling out a permanent HTTP redirect or a browser policy such as HSTS, treat that as its own decision after testing HTTPS. HSTS tells browsers that have learned the policy to insist on HTTPS for the specified host, and its subdomain option expands that effect. Include subdomains only when the team controls their HTTPS readiness and has evaluated the impact. A client can remember the policy beyond a configuration change. Try the test on the intended names and capture a working browser journey before changing behavior for more addresses.

Write a three-name acceptance checklist

Write the three planned addresses on three rows and make the expectations visible before opening a change. For the bare host, the dairy expects a validated certificate and an HTTP success containing the catalog title. For the www host, it expects a validated certificate and the chosen redirect to the bare host without dropping the customer’s path. For the east pickup host, it expects a validated certificate and the collection point marker. Write down the intended value for the query if the printed link contains one. Use only a demonstration order number when capturing evidence.

Choose verification locations with different views of the service. The person deploying the configuration can check a named request against the intended listener, possibly with a scoped address override. A separate ordinary client can test public DNS, regular trust and the final website without that override. The two checks answer different questions. If the candidate behaves correctly but the ordinary client reaches an old address, record that difference and follow the DNS publication or caching evidence. Keep the old endpoint healthy for as long as the migration plan requires its address to work.

Put a pass signal next to each row. It can be an observed name and expiry, an HTTP status, a complete redirect destination, and a visible catalog marker. “Works from my computer” leaves too much to reconstruct during renewal. Imagine another team member is paged a month later and has to compare today’s outcome with yours. Give them the exact public URL, clock time, client path and name of the endpoint that served the certificate. That evidence lets them distinguish a new validation failure from an old configuration or cached route.

Finish the handoff by assigning the job of watching for upcoming expiry and verifying the next renewal. The owner of the DNS proof and the owner of the TLS listener can be different teams. Write both into the notes alongside the process for applying the new certificate, then verify that monitoring checks the public face of all three advertised addresses. One successfully monitored catalog endpoint can otherwise hide an independently expiring certificate on the collection host.

Test identity and trust on a private HTTPS listener

In this lab you own both ends of a temporary connection on your computer. It uses Python 3 with the TLS module, an OpenSSL command with req -addext support, and curl. The program creates a short-lived workshop root and signs a certificate for three DNS identities. The name remains in each request while the address is set to the local loopback listener just for that request. Nothing needs to be published in DNS. No key is added to a system trust store. Read the code first and run it from a shell in your own local training environment.

Before you run it, make six rows in a notebook. Predict the outcome for the dairy name, the explicit www name, one collection point under the wildcard, the base of the wildcard, a deeper relative name and the main site without the workshop root. Make the first five comparisons with the same temporary issuer trust available. The endpoint, handler and network address stay fixed across the comparisons. That isolates the URL name and the configured trust as the differences you are testing.

python3 - <<'PY'
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
from pathlib import Path
import ssl
import subprocess
import tempfile
import threading

class Catalog(BaseHTTPRequestHandler):
    def do_GET(self):
        body = b"TLS LAB dairy catalog\n"
        self.send_response(200)
        self.send_header("Content-Type", "text/plain")
        self.send_header("Content-Length", str(len(body)))
        self.end_headers()
        self.wfile.write(body)

    def log_message(self, format, *args):
        pass

with tempfile.TemporaryDirectory(prefix="dairy-tls-") as folder:
    lab = Path(folder)

    def openssl(*parts):
        return subprocess.run(
            ["openssl", *parts], cwd=lab, check=True,
            capture_output=True, text=True, timeout=20,
        ).stdout

    openssl("req", "-x509", "-newkey", "rsa:2048", "-sha256", "-nodes",
            "-days", "1", "-subj", "/CN=Dairy TLS Workshop Root",
            "-addext", "basicConstraints=critical,CA:TRUE",
            "-addext", "keyUsage=critical,keyCertSign,cRLSign",
            "-keyout", "root.key", "-out", "root.pem")
    openssl("req", "-new", "-newkey", "rsa:2048", "-sha256", "-nodes",
            "-subj", "/CN=dairy.example.test",
            "-keyout", "leaf.key", "-out", "leaf.csr")
    (lab / "leaf.ext").write_text(
        "basicConstraints=critical,CA:FALSE\n"
        "keyUsage=critical,digitalSignature,keyEncipherment\n"
        "extendedKeyUsage=serverAuth\n"
        "subjectAltName=DNS:dairy.example.test,DNS:www.dairy.example.test,"
        "DNS:*.pickup.dairy.example.test\n"
    )
    openssl("x509", "-req", "-in", "leaf.csr", "-CA", "root.pem",
            "-CAkey", "root.key", "-CAcreateserial", "-days", "1",
            "-sha256", "-extfile", "leaf.ext", "-out", "leaf.pem")
    print(openssl("x509", "-in", "leaf.pem", "-noout",
                  "-ext", "subjectAltName").strip())

    with ThreadingHTTPServer(("127.0.0.1", 0), Catalog) as server:
        port = server.server_address[1]
        tls = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
        tls.load_cert_chain(lab / "leaf.pem", lab / "leaf.key")
        server.socket = tls.wrap_socket(server.socket, server_side=True)
        worker = threading.Thread(target=server.serve_forever, daemon=True)
        worker.start()

        def request(name, trust_lab_root=True):
            trust = ["--cacert", str(lab / "root.pem")] if trust_lab_root else []
            return subprocess.run(
                ["curl", "-q", "-fsS", "--max-time", "5", "--noproxy", name,
                 "--resolve", f"{name}:{port}:127.0.0.1", *trust,
                 f"https://{name}:{port}/catalog"],
                capture_output=True, text=True, timeout=7,
            )

        try:
            for name in ("dairy.example.test", "www.dairy.example.test",
                         "east.pickup.dairy.example.test"):
                result = request(name)
                assert result.returncode == 0, result.stderr
                assert result.stdout == "TLS LAB dairy catalog\n", result
                print(f"{name:40} verified, catalog returned")

            for name in ("pickup.dairy.example.test", "north.east.pickup.dairy.example.test"):
                result = request(name)
                assert result.returncode == 60, result
                assert not result.stdout, result
                print(f"{name:40} identity rejected before HTTP")

            result = request("dairy.example.test", trust_lab_root=False)
            assert result.returncode == 60, result
            assert not result.stdout, result
            print("dairy.example.test with default trust    issuer rejected before HTTP")
        finally:
            server.shutdown()
            worker.join(timeout=5)
            assert not worker.is_alive()

assert not lab.exists()
print("Local HTTPS server stopped and temporary keys removed.")
PY

The OpenSSL calls first build a training issuer, then generate a different private key and a request for the website leaf. The extension file describes the leaf’s role and its three SAN entries. The line beginning with DNS: in the output lets you inspect the names actually written into the certificate. The server loads the leaf and its key, binds to a fresh port on the local machine, and returns the same catalog marker for each successful test. It uses a direct root-to-leaf chain to make the trust comparison easy to see.

The first two rows should return the marker for explicit names. The third row should return the same marker because east fills the wildcard’s single slot. Expect failures for the base of the wildcard and the deeper name. Although those requests point to exactly the same address and port as the successful test, curl refuses those names at verification. In the last row the advertised name matches an explicit identity, but the client lacks the novel workshop root. That changes the outcome before HTTP in the same way that a different class of verification failure would prevent a customer from getting the page.

The exercise checks curl exit code 60 for these verification failures and prints which comparison caused it. Curl’s detailed message can vary with its TLS library. The known inputs distinguish the two experiments. Check whether the forced address is present, whether the URL contains the intended name and whether the exact temporary root path is readable before treating a result as an application error. If the OpenSSL command is missing or rejects an option, run openssl version and use a current OpenSSL installation appropriate to your machine. Keep verification enabled for both comparisons.

The last line confirms the local listener stopped and the temporary key directory was removed. Keep only the outcome table in your notes. With the lab complete, explain the connection in your own words from URL host to verified marker. Then change only one name in the positive set to a second intended one-level pickup host, such as west.pickup.dairy.example.test. Predict and observe that its SAN coverage has the same shape, while the known failure cases remain separately reproducible.

Use the first failed check to narrow the incident

Ask support to copy the full URL and provide the approximate time of the warning. “The dairy doesn't work” might refer to the advertised www address, a saved deeper collection name, or the server’s bare IP. Run a named address lookup and document the answer family and destination. A DNS status without a usable address calls for a DNS investigation. If the correct address appears, follow the connection attempt to the appropriate listener. A timed-out port or connection refusal belongs before certificate troubleshooting.

For a certificate failure, collect the certificate actually presented and the precise test hostname. When using OpenSSL’s client diagnostically, make sure the relevant SNI and actual verification options are supplied for your test. Seeing the certificate in diagnostic output alone does not establish that its identity was checked or accepted. A normal verified curl request with the public hostname also tests whether the client reaches an HTTP response. A request that returns a 404 after verification now belongs with the HTTP routing investigation.

When people report two different results, compare what differs before restarting a service. Are they using two addresses printed at different times? Does one network use IPv6? Is one client bypassing the CDN for internal tests? Did a renewal update some current edge or origin nodes but leave a stale listener visible on another address? Keep the old and new observations in the same time-stamped incident note until you can reproduce the difference. Each comparison should hold the full URL constant while changing one suspected variable where possible.

For a redirect chain, record each hop’s source name, status and destination. A successful first HTTPS hop explains only that initial endpoint. The redirect may go to a missing pickup path, an unintended location or a distinct hostname with a certificate warning. Test the final response by its advertised name and confirm the expected marker. Include the actual results from a visitor perspective in the return-to-service note so the cashier knows the printed customer journey is fixed.

Explain each stage in an interview

A test gets the right address and a wrong-name warning. What would you check?

I would copy the exact URL and check the destination family and TLS endpoint in use. Then I would inspect the public SAN entries and listener selection for that hostname. An intended address can point at a shared listener with a different default certificate. I would retest the exact hostname through that route with verification enabled, then check the HTTP outcome only after the certificate is accepted.

Does the www name need its own certificate file if it only redirects?

It needs acceptable certificate coverage at the listener handling its HTTPS connection. It might use a shared certificate whose SAN already lists both names. The browser verifies the initial TLS connection before receiving the redirect. After that it separately verifies its connection to the redirect target if a new connection is needed.

Where does the certificate go if an Application Load Balancer terminates TLS?

The public certificate belongs on the load balancer’s HTTPS listener for the incoming connection. The connection from the load balancer to its target has a separately selected protocol and deployment design. I would check the public certificate and the target-side requirements as different tasks, then test the rule that connects the requested hostname and path to the right application.

What does a DNS-01 TXT value achieve in an ACME workflow?

It proves control through the relevant DNS authority, using a value associated with the specific validation. The CA checks it at the specified name. Issuance still follows the provider’s checks, and the resulting certificate then has to be deployed to the actual listener. The automation must keep scoped authority, preserve other TXT values, and support future renewals.

Why can a renewal succeed while a customer still gets an expiry warning?

The success could mean the renewal process obtained a file, while an edge listener continues to serve the previous leaf. I would compare the actual observed certificate dates on each relevant external route with the newly obtained material. I would also verify that the deployment/reload step and any relevant synchronization completed, then record the expected HTTPS application response.

Predict what the visitor receives

  1. A listener serves a leaf for the bare dairy name and returns a redirect for www. The visitor first opens the www HTTPS URL. Where can the visit stop?

    Answer and reasoning

    At TLS name verification of the initial request. The redirect can be sent only once the initial client has an accepting HTTPS exchange. Include the initial name in the certificate coverage and test the redirect after that.

  2. Only *.pickup.dairy.example.test appears as a DNS identity. Would that match the base pickup host or one warehouse label?

    Answer and reasoning

    It matches one full additional label, such as east.pickup.dairy.example.test. The base needs its own coverage. Two additional labels also fall outside this wildcard.

  3. Why is a successful request to the usual home page a weak signal?

    Answer and reasoning

    The CA requests a specific challenge path over its documented validation route. The home page can work while that path is intercepted by a redirect, misses a file, or reaches a different target. Check the actual validation path using the intended name and architecture.

  4. The new certificate dates are correct in a local directory, but external curl still sees the previous dates. Which evidence is tied to the browser’s experience?

    Answer and reasoning

    The external listener’s served certificate, using the exact advertised URL host and network path. The local directory proves files exist. Investigate which frontend terminates TLS and whether it received and started serving the new leaf.

  5. A client reports HTTP 404 over normally verified HTTPS to the intended name. Which layer returned the reported error?

    Answer and reasoning

    An HTTP responder produced the 404 after the network and TLS stages of that exchange. Check the request host, path, listener rule and application route. The status does not tell you which component produced it or whether other address paths are equally healthy.

Revision cards for an HTTPS handoff

Address and identity

DNS helps the client find a destination. TLS verifies the expected service identity at that destination and creates the protected connection. Keep the original URL host when testing an alternate IP.

First half of a redirect

An HTTPS link needs an acceptable certificate at the first host even if the only response is to redirect. Follow and check any separate destination afterwards.

Single-level certificate wildcard

A TLS wildcard covers one full leftmost label. Write apex, aliases and deeper names explicitly into the coverage checklist where relevant.

Certificate versus private key

The public certificate describes the public key and identities. Store the corresponding private key with limited access and keep it out of examples and recorded output.

Issued, installed, verified

ACME issuance obtains the leaf, installation attaches it to the listener, and a normal named connection verifies what visitors receive. Renewal should complete the entire sequence on schedule.

Official references