@Override
    public X509Certificate get() throws IOException {
      if (myCertificate == null) {
        try {
          CertificateFactory factory = CertificateFactory.getInstance("X.509");
          ByteArrayInputStream stream = new ByteArrayInputStream(myText.getBytes(StandardCharsets.UTF_8));
          myCertificate = (X509Certificate)factory.generateCertificate(stream);
        }
        catch (Exception e) {
          throw new IOException("Failed to read certificate", e);
        }
      }
      return myCertificate;
    }
@Override
    public X509Certificate get()