Catalyzes the oxidation of sulfhydryl groups in peptide and protein thiols to disulfides with the reduction of oxygen to hydrogen peroxide. May contribute to disulfide bond formation in a variety of secreted proteins (By similarity). O2 + 2 R'C(R)SH = H2O2 + R'C(R)S-S(R)CR'