Bugfix
   * Fix corruption of DER certificates generated by the `cert_write`
     sample program on Windows. #10152

