Index: tareas_puppet/portatiles/wheezy/port_fnmt/files/AC_Componentes_Informaticos.crt
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: tareas_puppet/portatiles/wheezy/port_fnmt/files/AC_Componentes_Informaticos.crt
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: tareas_puppet/portatiles/wheezy/port_fnmt/files/AC_Raiz_FNMT-RCM.crt
===================================================================
--- tareas_puppet/portatiles/wheezy/port_fnmt/files/AC_Raiz_FNMT-RCM.crt	(nonexistent)
+++ tareas_puppet/portatiles/wheezy/port_fnmt/files/AC_Raiz_FNMT-RCM.crt	(revision 544)
@@ -0,0 +1,32 @@
+-----BEGIN CERTIFICATE-----
+MIIFgzCCA2ugAwIBAgIPXZONMGc2yAYdGsdUhGkHMA0GCSqGSIb3DQEBCwUAMDsx
+CzAJBgNVBAYTAkVTMREwDwYDVQQKDAhGTk1ULVJDTTEZMBcGA1UECwwQQUMgUkFJ
+WiBGTk1ULVJDTTAeFw0wODEwMjkxNTU5NTZaFw0zMDAxMDEwMDAwMDBaMDsxCzAJ
+BgNVBAYTAkVTMREwDwYDVQQKDAhGTk1ULVJDTTEZMBcGA1UECwwQQUMgUkFJWiBG
+Tk1ULVJDTTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBALpxgHpMhm5/
+yBNtwMZ9HACXjywMI7sQmkCpGreHiPibVmr75nuOi5KOpyVdWRHbNi63URcfqQgf
+BBckWKo3Shjf5TnUV/3XwSyRAZHiItQDwFj8d0fsjz50Q7qsNI1NOHZnjrDIbzAz
+WHFctPVrbtQBULgTfmxKo0nRIBnuvMApGGWn3v7v3QqQIecaZ5JCEJhfTzC8PhxF
+tBDXaEAUwED653cXeuYLj2VbPNmaUtu1vZ5Gzz3rkQUCwJaydkxNEJY7kvqcfw+Z
+374jNUUeAlz+taibmSXaXvMiwzn15Cou08YfxGyqxRxqAQVKL9LFwag0Jl1mpdI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txyM/1d8iC9djwj2ij3+RvrWWTV3F9yfiD8zYm1kGdNYno/Tq0dwzn+evQoFt9B
+9kiABdcPUXmsEKvU7ANm5mqwujGSQkBqvjrTcuFqN1W8rB2Vt2lh8kORdOag0wok
+RqEIr9baRRmW1FMdW4R58MD3R++Lj8UGrp1MYp3/RgT408m2ECVAdf4WqslKYIYv
+uu8wd+RU4riEmViAqhOLUTpPSPaLtrM=
+-----END CERTIFICATE-----
Index: tareas_puppet/portatiles/wheezy/port_fnmt/files/certfnmt
===================================================================
--- tareas_puppet/portatiles/wheezy/port_fnmt/files/certfnmt	(nonexistent)
+++ tareas_puppet/portatiles/wheezy/port_fnmt/files/certfnmt	(revision 544)
@@ -0,0 +1,61 @@
+#!/bin/bash
+#
+#Comprueba si el usuario tiene añadidos los certificados de la FNMT, si no lo están
+#los añade a su perfil de Iceweasel / Firefox  Chromium/Chrome
+#
+#
+# Licensed under the GNU GPL version 2, as publicshed by the FSF;
+# see /usr/share/common-licenses/GPL-2 on Debian systems or visit
+# www.fsf.org.
+#
+
+#Ricardo Salgado IESO Galisteo 
+
+#15/10/2014
+#24/03/2015 Nuevos certificados y soporte de chrome.
+
+
+
+FNMTDIR="/usr/local/share/ca-certificates/FNMT/"
+
+
+##Iceweasel/Firefox
+if [ ! -d $HOME/.mozilla/firefox/ ]; then
+   /usr/bin/iceweasel -silent
+fi
+pathmozilla="$HOME/.mozilla/firefox/"
+##Chromium/Chrome
+pathchrome=$HOME/.pki/nssdb
+if [ ! -d "$pathchrome" ]; then
+   mkdir -p ${pathchrome}
+   #HACK:para la creación del repositorio de certificados hace falta un password
+   #Usamos un password vacio, como hasta ahora.
+   echo > /tmp/password-file
+   certutil -N -f /tmp/password-file -@ /tmp/password-file  -d sql:${pathchrome}
+   chmod 700 $HOME/.pki
+   rm /tmp/password-file
+fi
+
+certfile=$(find ${pathmozilla} ${pathchrome}  \( -name cert9.db -o -name cert8.db \))
+for db in $certfile; do
+   certdir=$(dirname ${db})
+   tipo=$(basename ${db})
+   for certificado in ${FNMTDIR}* ; do
+      nombre_cert=$(basename $certificado .crt)
+      case "$tipo" in
+         "cert8.db")
+            if  ! certutil -L -d  $certdir  |  grep -q  "${nombre_cert}"; then
+              echo Añadiendo ${nombre_cert} a $certdir
+              certutil -A  -n "${nombre_cert}" -t 'C,,'  -i $certificado -d $certdir
+            fi
+         ;;
+         "cert9.db")
+            if  ! certutil -L -d  sql:${certdir}  |  grep -q  "${nombre_cert}"; then
+              echo Añadiendo ${nombre_cert} a $certdir
+              certutil -A  -n "${nombre_cert}" -t 'C,,'  -i $certificado -d sql:${certdir}
+            fi
+         ;;
+
+      esac
+   done
+done

Property changes on: tareas_puppet/portatiles/wheezy/port_fnmt/files/certfnmt
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: tareas_puppet/portatiles/wheezy/port_fnmt/files/FNMTClase2CA.crt
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: tareas_puppet/portatiles/wheezy/port_fnmt/files/FNMTClase2CA.crt
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: tareas_puppet/portatiles/wheezy/port_fnmt/files/certfnmt.desktop
===================================================================
--- tareas_puppet/portatiles/wheezy/port_fnmt/files/certfnmt.desktop	(nonexistent)
+++ tareas_puppet/portatiles/wheezy/port_fnmt/files/certfnmt.desktop	(revision 544)
@@ -0,0 +1,11 @@
+#
+[Desktop Entry]
+Version=1.0
+Terminal=false
+Type=Application
+Categories=
+Exec=/usr/local/bin/certfnmt
+NoDisplay=true
+Name=Certificados FNMT
+Comment=Creacion de perfil e instalacion de certificados FNMT para Iceweasel y Chromium
+X-GIO-NoFuse=true
Index: tareas_puppet/portatiles/wheezy/port_fnmt/leeme.txt
===================================================================
--- tareas_puppet/portatiles/wheezy/port_fnmt/leeme.txt	(nonexistent)
+++ tareas_puppet/portatiles/wheezy/port_fnmt/leeme.txt	(revision 544)
@@ -0,0 +1,18 @@
+port_fnmt
+
+Comprueba en el inicio de sesión(vía /etc/xdg/autostart)si el usuario 
+tiene añadidos los certificados de la FNMT, si no lo están los añade 
+a su perfil de Iceweasel / Firefox y Chromium / Chrome.
+Pensada para los portátiles y/o máquinas que no tengan los HOMES en NFS.
+
+
+
+Licensed under the GNU GPL version 2, as publicshed by the FSF;
+see /usr/share/common-licenses/GPL-2 on Debian systems or visit
+www.fsf.org.
+
+
+Ricardo Salgado Cid IESO Galisteo 
+15/10/2014 Release incial
+24/03/2015 Añadida gestión de chrome/chromium y nuevos certificados
+ 
Index: tareas_puppet/portatiles/wheezy/port_fnmt/manifests/init.pp
===================================================================
--- tareas_puppet/portatiles/wheezy/port_fnmt/manifests/init.pp	(nonexistent)
+++ tareas_puppet/portatiles/wheezy/port_fnmt/manifests/init.pp	(revision 544)
@@ -0,0 +1,41 @@
+class port_fnmt {
+
+file {  "/usr/local/share/ca-certificates/FNMT/":
+        ensure => directory,
+        owner => root, group => root, mode => 755;
+
+       "/usr/local/share/ca-certificates/FNMT/AC_Componentes_Informaticos.crt":
+        owner => root, group => root, mode => 644,
+        source => "puppet:///modules/port_fnmt/AC_Componentes_Informaticos.crt",
+	require => File["/usr/local/share/ca-certificates/FNMT/"],
+	notify => Exec["actualizar-certificados-fnmt-sistema"];
+
+       "/usr/local/share/ca-certificates/FNMT/AC_Raiz_FNMT-RCM.crt":
+        owner => root, group => root, mode => 644,
+        source => "puppet:///modules/port_fnmt/AC_Raiz_FNMT-RCM.crt",
+	require => File["/usr/local/share/ca-certificates/FNMT/"],
+        notify => Exec["actualizar-certificados-fnmt-sistema"];
+
+       "/usr/local/share/ca-certificates/FNMT/FNMTClase2CA.crt":
+        owner => root, group => root, mode => 644,
+        source => "puppet:///modules/port_fnmt/FNMTClase2CA.crt",
+	require => File["/usr/local/share/ca-certificates/FNMT/"],
+        notify => Exec["actualizar-certificados-fnmt-sistema"];
+
+	"/usr/local/bin/certfnmt":
+        owner => root, group => root, mode => 755,
+        source => "puppet:///modules/port_fnmt/certfnmt";
+
+	"/etc/xdg/autostart/certfnmt.desktop":
+        owner => root, group => root, mode => 644,
+        source => "puppet:///modules/port_fnmt/certfnmt.desktop";
+      }
+
+ exec { "actualizar-certificados-fnmt-sistema":
+        command => "/usr/sbin/update-ca-certificates",
+        refreshonly => true;
+       }
+
+
+}
+
Index: tareas_puppet/portatiles/wheezy/port_fnmt.tar.gz
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: tareas_puppet/portatiles/wheezy/port_fnmt.tar.gz
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
