title: Automate Splitting a PEM File into multiple Certs
body: <p>I need to figure out a way to automate the process of splitting a PEM file into multiple PEM files. I was thinking of utilizing a batch script that will grab the PEM and Separate every time it finds:</p>
  
  <blockquote>
    <p>-----BEGIN CERTIFICATE-----</p>
  </blockquote>
  
  <p>To</p>
  
  <blockquote>
    <p>-----END CERTIFICATE-----</p>
  </blockquote>
  
  <p>However this seems a bit "hacky." I was hoping OpenSSL would have a tool that might be able to do this but I can't seem to find anything.</p>
  
  <p>What would be the best way of doing this?</p>