Skip to content

Commit 492c084

Browse files
Formatting and info on certificates in SP quickstart
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1850 44740490-163a-0410-bde0-09ae8108e29a
1 parent 255332c commit 492c084

2 files changed

Lines changed: 22 additions & 6 deletions

File tree

docs/simplesamlphp-idp.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,10 @@ For more information about available options in the sp-remote metadata files, se
156156
Creating a SSL self signed certificate
157157
--------------------------------------
158158

159-
For test purposes, you can skip this section, and use the certificate
160-
included in the simpleSAMLphp distribution.
159+
For test purposes, you can skip this section, and use the certificate included in the simpleSAMLphp distribution.
160+
161+
Here is an example of an `openssl`-command which can be used to generate a new private key key and the corresponding self-signed certificate.
161162

162-
Here is an example of an `openssl`-command which can be used to generate
163-
a new private key key and the corresponding self-signed certificate.
164163
This key and certificate can be used to sign SAML messages:
165164

166165
openssl req -new -x509 -days 3652 -nodes -out example.org.crt -keyout example.org.pem
@@ -170,8 +169,7 @@ The certificate above will be valid for 10 years.
170169

171170
### Note ###
172171

173-
simpleSAMLphp will only work with RSA certificates. DSA certificates
174-
are not supported.
172+
simpleSAMLphp will only work with RSA certificates. DSA certificates are not supported.
175173

176174

177175
### Warning ###

docs/simplesamlphp-sp.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,24 @@ If you want mulitple Service Providers in the same site and installation, you ca
4343
'entityID' => 'https://sp2.example.org/,
4444
),
4545

46+
### Enablig a certificate for your Service Provider
47+
48+
Some Identity Providers / Federations may require that your Service Providers holds a certificate. If you enable a certificate for your Service Provider, it may be able to sign requests and response sent to the Identity Provider, as well as receiving encrypted responses.
49+
50+
Create a self-signed certificate in the `cert/` directory.
51+
52+
cd cert
53+
openssl req -new -x509 -days 3652 -nodes -out saml.crt -keyout saml.pem
54+
55+
56+
Then edit your `authsources.php` entry, and add references to your certificate:
57+
58+
'default-sp' => array(
59+
'saml:SP',
60+
'privatekey' => 'saml.pem',
61+
'certificate' => 'saml.crt',
62+
),
63+
4664

4765
Adding IdPs to the SP
4866
---------------------

0 commit comments

Comments
 (0)