code: public void createCertificate(InputStream certStream) throws BatchErrorException, IOException, CertificateException, NoSuchAlgorithmException {
          createCertificate(certStream, null);
      }
docs: Adds a certificate to the Batch account.
  
  @param certStream The certificate data in .cer format.
  @throws BatchErrorException Exception thrown when an error response is received from the Batch service.
  @throws IOException Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.
  @throws CertificateException Exception thrown when an error is encountered processing the provided certificate.
  @throws NoSuchAlgorithmException Exception thrown if the X.509 provider is not registered in the Java security provider list.