/** * Writes the signed certificate request to an {@link OutputStream}. * * @param out * {@link OutputStream} to write the PEM file to. The {@link OutputStream} * is closed after use. */ public void write(@WillClose OutputStream out) throws IOException { write(new OutputStreamWriter(out, "utf-8")); }
/** * Writes the signed certificate request to an {@link OutputStream}. * * @param out * {@link OutputStream} to write the PEM file to. The {@link OutputStream} * is closed after use. */ public void write(@WillClose OutputStream out) throws IOException { write(new OutputStreamWriter(out, "utf-8")); }
csrb.write(writer);
csrb.write(out); } catch (IOException e) { String message = "unable to save csr";
csrb.write(out);
csrBuilder.write(writer);