diff --git a/TD/TD2/b.php b/TD/TD2/b.php
index bd74ad8..8e7e7fc 100644
--- a/TD/TD2/b.php
+++ b/TD/TD2/b.php
@@ -1,18 +1,23 @@
"FR",
- "stateOrProvinceName" => "Alpes Maritimes",
- "localityName" => "Nice",
- "organizationName" => "iut",
- "organizationalUnitName" => "iotia",
- "commonName" => "Pauline Srifi",
- "emailAddress" => "pauline@srifi.fr"
+ "countryName" => $_POST["Pays"],
+ "stateOrProvinceName" => $_POST["Département"],
+ "localityName" => $_POST["Ville"],
+ "organizationName" => $_POST["Organisation"],
+ "organizationalUnitName" => $_POST["Unite"],
+ "commonName" => '$_POST["Nom"]' . ' ' .'$_POST["Prenom"]',
+ "emailAddress" => $_POST["Email"]
);
$pk = openssl_pkey_new($config);
$req = openssl_csr_new($dn, $pk, $config);
@@ -24,6 +29,8 @@ if(isset($_POST['Nom'])) {
echo "Certificat exporté
";
echo "Requête exportée
";
echo "Clée privée exportée
";
+} else {
+ echo '