This paper deals with the optimal synthesis of aperture fields for (radiating) near-field communications in obstructed environments. A physically consistent model based on knife-edge diffraction is used to formulate the problem as a maximization in Hilbert space. The optimal solution is obtained as a matched filter that ``matches" the shape of a diffraction-induced kernel, thus linking wave propagation with signal processing methods. The framework supports hardware implementation using continuous apertures such as metasurfaces or lens antennas. This approach bridges physically grounded modeling, signal processing, and hardware design for efficient energy focusing in near-field obstructed channels.