The present application provides methods and uses of O-oligosaccharyltransferase (O-OTases) for generating vaccines. In particular, the present application provides a method of synthesizing a glycoprotein comprising glycosylation of pilin-like protein ComP using a Pg1LComP O-OTase. Uses of glycoproteins synthesized by glycosylating Com P using Pg1LComP O-OTase, particularly for the preparation of vaccines and the like, including a vaccine to Streptococcus, is also provided.