@Override
  public CertificateListDto getOperatorRevokedCertificateList(OperatorDto dto)
      throws ParseException {

    CertificateAuthorityPortType port = getPort();

    OperatorType operatorType = new OperatorType();

    operatorType.setOperatorID(dto.getOperatorID());

    CertificateListType certListType = port.getOperatorRevokedCertificateList(operatorType);

    CertificateListDto certListDto = new CertificateListDto();

    for (CertificateType cert : certListType.getCertificateList())
      certListDto.add(
          cert.getSerialID(),
          cert.getOperatorID(),
          cert.getPublicKey(),
          Data.convertStringToDate(cert.getStartDate()),
          Data.convertStringToDate(cert.getEndDate()),
          cert.getSignature());

    return certListDto;
  }
  @Override
  public CertificateDto signCertificate(OperatorAndKeyDto dto) throws ParseException {

    CertificateAuthorityPortType port = getPort();
    OperatorAndKeyType operatorType = new OperatorAndKeyType();
    operatorType.setOperatorID(dto.getOperatorID());
    operatorType.setPublicKey(dto.getPublicKey());
    CertificateType certType = port.signCertificate(operatorType);
    CertificateDto certificateDto =
        new CertificateDto(
            certType.getSerialID(),
            certType.getOperatorID(),
            certType.getPublicKey(),
            Data.convertStringToDate(certType.getStartDate()),
            Data.convertStringToDate(certType.getEndDate()),
            certType.getSignature());

    return certificateDto;
  }