The signal peptide of preproinsulin is a major source for HLA class I autoantigen epitopes implicated in CD8 T cell (CTL)-mediated β-cell destruction in type 1 diabetes (T1D). Among them, the 10-mer epitope located at the C-terminal end of the signal peptide was found to be the most prevalent in patients with recent-onset T1D. While the combined action of signal peptide peptidase and endoplasmic reticulum (ER) aminopeptidase 1 (ERAP1) is required for processing of the signal peptide, the mechanisms controlling signal peptide trimming and the contribution of the T1D inflammatory milieu on these mechanisms are unknown. Here, we show in human β-cells that ER stress regulates ERAP1 gene expression at posttranscriptional level via the IRE1α/miR-17-5p axis and demonstrate that inhibition of the IRE1α activity impairs processing of preproinsulin signal peptide antigen and its recognition by specific autoreactive CTLs during inflammation. These results underscore the impact of ER stress in the increased visibility of β-cells to the immune system and position the IRE1α/miR-17 pathway as a central component in β-cell destruction processes and as a potential target for the treatment of autoimmune T1D.