<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>http://federacion.riu.edu.ar/index.php?action=history&amp;feed=atom&amp;title=Simplesamlphp_como_SP</id>
	<title>Simplesamlphp como SP - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="http://federacion.riu.edu.ar/index.php?action=history&amp;feed=atom&amp;title=Simplesamlphp_como_SP"/>
	<link rel="alternate" type="text/html" href="http://federacion.riu.edu.ar/index.php?title=Simplesamlphp_como_SP&amp;action=history"/>
	<updated>2026-04-27T17:13:41Z</updated>
	<subtitle>Historial de revisiones de esta página en la wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>http://federacion.riu.edu.ar/index.php?title=Simplesamlphp_como_SP&amp;diff=5&amp;oldid=prev</id>
		<title>Mzigaran: Página creada con «=== Simplesamlphp ===  * Instalar prerequisitos:   # apt-get install php5 php5-mcrypt php5-mhash php5-mysql openssl  * Instalar simplesamlphp:  Sitio con información para descarga: &lt;nowiki&gt;https://simplesamlphp.org/download&lt;/nowiki&gt;  * Descarga, descompresión, creación de link simbolico:   # cd /var/www/html  # wget &lt;nowiki&gt;https://simplesamlphp.org/res/downloads/simplesamlphp-1.XX.X.tar.gz&lt;/nowiki&gt;  # tar zxvf simplesamlphp-1.XX.X.tar.gz  # ln -s simplesamlphp-1.X…»</title>
		<link rel="alternate" type="text/html" href="http://federacion.riu.edu.ar/index.php?title=Simplesamlphp_como_SP&amp;diff=5&amp;oldid=prev"/>
		<updated>2023-06-28T18:03:11Z</updated>

		<summary type="html">&lt;p&gt;Página creada con «=== Simplesamlphp ===  * Instalar prerequisitos:   # apt-get install php5 php5-mcrypt php5-mhash php5-mysql openssl  * Instalar simplesamlphp:  Sitio con información para descarga: &amp;lt;nowiki&amp;gt;https://simplesamlphp.org/download&amp;lt;/nowiki&amp;gt;  * Descarga, descompresión, creación de link simbolico:   # cd /var/www/html  # wget &amp;lt;nowiki&amp;gt;https://simplesamlphp.org/res/downloads/simplesamlphp-1.XX.X.tar.gz&amp;lt;/nowiki&amp;gt;  # tar zxvf simplesamlphp-1.XX.X.tar.gz  # ln -s simplesamlphp-1.X…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Simplesamlphp ===&lt;br /&gt;
&lt;br /&gt;
* Instalar prerequisitos:&lt;br /&gt;
&lt;br /&gt;
 # apt-get install php5 php5-mcrypt php5-mhash php5-mysql openssl&lt;br /&gt;
&lt;br /&gt;
* Instalar simplesamlphp:&lt;br /&gt;
&lt;br /&gt;
Sitio con información para descarga: &amp;lt;nowiki&amp;gt;https://simplesamlphp.org/download&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Descarga, descompresión, creación de link simbolico:&lt;br /&gt;
&lt;br /&gt;
 # cd /var/www/html&lt;br /&gt;
 # wget &amp;lt;nowiki&amp;gt;https://simplesamlphp.org/res/downloads/simplesamlphp-1.XX.X.tar.gz&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 # tar zxvf simplesamlphp-1.XX.X.tar.gz&lt;br /&gt;
 # ln -s simplesamlphp-1.XX.X.tar.gz simplesamlphp&lt;br /&gt;
&lt;br /&gt;
* Simplesamlphp requiere un certificado SSL en el directorio certs.&lt;br /&gt;
&lt;br /&gt;
Podemos crear uno autofirmado y copiarlo a dicho directorio:&lt;br /&gt;
 # mkdir /etc/ssl/certs/sp/&lt;br /&gt;
 # cd /etc/ssl/certs/sp/&lt;br /&gt;
 # openssl genrsa -out server.pem 2048&lt;br /&gt;
 # openssl req -new -key server.pem -out server.csr&lt;br /&gt;
 # openssl x509 -req -days 365 -in server.csr -signkey server.pem -out server.crt&lt;br /&gt;
 # cp * /var/www/html/simplesamlphp/cert/&lt;br /&gt;
&lt;br /&gt;
* Editar archivo de configuracion &amp;#039;&amp;#039;&amp;#039;/var/www/html/simplesamlphp/config/config.php&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
  &amp;#039;auth.adminpassword&amp;#039; =&amp;gt; &amp;#039;secret&amp;#039;      # Set a new password for admin web interface&lt;br /&gt;
  &amp;#039;enable.saml20-idp&amp;#039; =&amp;gt; true,          # Enable ssp as IdP&lt;br /&gt;
  &amp;#039;secretsalt&amp;#039; =&amp;gt; &amp;#039;secret&amp;#039;,             # Set a Salt, in the config file there is documentation to generate it&lt;br /&gt;
  &amp;#039;technicalcontact_name&amp;#039; =&amp;gt; &amp;#039;Admin name&amp;#039;,          # Set admin data&lt;br /&gt;
  &amp;#039;technicalcontact_email&amp;#039; =&amp;gt; &amp;#039;xxxx@riu.edu.ar&amp;#039;,&lt;br /&gt;
  &amp;#039;session.cookie.domain&amp;#039; =&amp;gt; &amp;#039;.sp.riu.edu.ar&amp;#039;,        # Set the global domain, to share cookie with the rest of componnets&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Valores recomendados para Produccion:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
  &amp;#039;admin.protectindexpage&amp;#039;        =&amp;gt; true,    # To protect the index page of simpleSAMLphp&lt;br /&gt;
  &amp;#039;debug&amp;#039;                 =&amp;gt;      FALSE,&lt;br /&gt;
  &amp;#039;showerrors&amp;#039;            =&amp;gt;      FALSE,      # To hide error-trace&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Ajustar owner en directorios:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 # chown -R apache:apache cert log data metadata&lt;br /&gt;
&lt;br /&gt;
* Editar archivo donde se declaran los identity providers &amp;#039;&amp;#039;&amp;#039;/var/www/html/simplesamlphp/config/authsources.php:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;?php&lt;br /&gt;
  $config = array(&lt;br /&gt;
  &lt;br /&gt;
         // This is a authentication source which handles admin authentication.&lt;br /&gt;
         &amp;#039;admin&amp;#039; =&amp;gt; array(&lt;br /&gt;
                 // The default is to use core:AdminPassword, but it can be replaced with&lt;br /&gt;
                 // any authentication source.&lt;br /&gt;
  &lt;br /&gt;
                 &amp;#039;core:AdminPassword&amp;#039;,&lt;br /&gt;
         ),&lt;br /&gt;
  &lt;br /&gt;
         // An authentication source which can authenticate against both SAML 2.0&lt;br /&gt;
         // and Shibboleth 1.3 IdPs.&lt;br /&gt;
         &amp;#039;default-sp&amp;#039; =&amp;gt; array(&lt;br /&gt;
                 &amp;#039;saml:SP&amp;#039;,&lt;br /&gt;
  &lt;br /&gt;
                 // The entity ID of this SP.&lt;br /&gt;
                 // Can be NULL/unset, in which case an entity ID is generated based on the metadata URL.&lt;br /&gt;
                 &amp;#039;entityID&amp;#039; =&amp;gt; NULL,&lt;br /&gt;
  &lt;br /&gt;
                 // The entity ID of the IdP this should SP should contact.&lt;br /&gt;
                 // Can be NULL/unset, in which case the user will be shown a list of available IdPs.&lt;br /&gt;
  &lt;br /&gt;
  //              &amp;#039;idp&amp;#039; =&amp;gt; NULL,&lt;br /&gt;
                 &amp;#039;idp&amp;#039; =&amp;gt; &amp;#039;&amp;lt;nowiki&amp;gt;https://id.riu.edu.ar/saml2/idp/metadata.php&amp;#039;&amp;lt;/nowiki&amp;gt;, # Set the entityID of the IdP you gonna use&lt;br /&gt;
  &lt;br /&gt;
                 // The URL to the discovery service.&lt;br /&gt;
                 // Can be NULL/unset, in which case a builtin discovery service will be used.&lt;br /&gt;
                 &amp;#039;discoURL&amp;#039; =&amp;gt; NULL,&lt;br /&gt;
  &lt;br /&gt;
         ),&lt;br /&gt;
  ),&lt;br /&gt;
&lt;br /&gt;
* Conectarse como administrador al sitio idp (en nuestro caso &amp;lt;nowiki&amp;gt;https://id.riu.edu.ar&amp;lt;/nowiki&amp;gt;) para obtener &amp;#039;&amp;#039;&amp;#039;SAML 2.0 IdP Metadata“ en formato php.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Pegar su contenido en el archivo &amp;#039;&amp;#039;&amp;#039;/var/www/html/simplesamlphp/metadata/saml20-idp-remote.php&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* Agregar el siguiente alias en la definición de &amp;#039;&amp;#039;&amp;#039;virtualhost&amp;#039;&amp;#039;&amp;#039; del servidor web:&lt;br /&gt;
&lt;br /&gt;
 Alias /simplesaml /var/www/html/simplesamlphp/www&lt;/div&gt;</summary>
		<author><name>Mzigaran</name></author>
	</entry>
</feed>