protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		CertificateFactory cf;
		try {
			crlM.createCRL(getServletContext().getRealPath("/")+"certificat.p12", "toto", "webmail.monsite.fr", "webmail.monsite.fr", "toto");

	        crlM.save(getServletContext().getRealPath("/")+"test.crl");


			cf = CertificateFactory.getInstance("X.509");
			X509Certificate generateCertificate = (X509Certificate) cf.generateCertificate(new FileInputStream(getServletContext().getRealPath("/")+"certonly.pem"));

	        crlM.revoke(getServletContext().getRealPath("/")+"test.crl",generateCertificate, CRLReason.keyCompromise);

	        
		} catch (CertificateException e) {
			// TODO Bloc catch généré automatiquement
			e.printStackTrace();
		} catch (InvalidKeyException e) {
			// TODO Bloc catch généré automatiquement
			e.printStackTrace();
		} catch (NoSuchProviderException e) {
			// TODO Bloc catch généré automatiquement
			e.printStackTrace();
		} catch (SecurityException e) {
			// TODO Bloc catch généré automatiquement
			e.printStackTrace();
		} catch (SignatureException e) {
			// TODO Bloc catch généré automatiquement
			e.printStackTrace();
		} catch (CRLException e) {
			// TODO Bloc catch généré automatiquement
			e.printStackTrace();
		} catch (KeyStoreException e) {
			// TODO Bloc catch généré automatiquement
			e.printStackTrace();
		} catch (NoSuchAlgorithmException e) {
			// TODO Bloc catch généré automatiquement
			e.printStackTrace();
		}
        
		
		request.setAttribute("crl", crlM.displayCrls());
       
		this.getServletContext().getRequestDispatcher( "/WEB-INF/CRLGen.jsp" ).forward( request, response );

	}