More specifically, it is produced by chief cells in the stomach lining and is active in the gastric juice, the acidic fluid that aids in digestion.