diff --git a/docs/simplesamlphp-idp.txt b/docs/simplesamlphp-idp.txt
index ecd70524de75aad469c314138c5df4d91be67bc9..203a96638b7d149606c948456f7a1a5e109d2b4c 100644
--- a/docs/simplesamlphp-idp.txt
+++ b/docs/simplesamlphp-idp.txt
@@ -150,7 +150,7 @@ The identity provider you are configuring needs to know about the service provid
 
 	<?php
 	$metadata = array(
-		'sp.example.org' => array(
+		'https://sp.example.org' => array(
 			'AssertionConsumerService' => 'https://sp.example.org/simplesaml/saml2/sp/AssertionConsumerService.php',
 			'SingleLogoutService'      => 'https://sp.example.org/simplesaml/saml2/sp/SingleLogoutService.php',
 		),
diff --git a/metadata-templates/saml20-sp-remote.php b/metadata-templates/saml20-sp-remote.php
index 6a07924f6df38c53cf95ae77381798eb28adec2a..3660298ed7270b7e50b92713d2a864059841b358 100644
--- a/metadata-templates/saml20-sp-remote.php
+++ b/metadata-templates/saml20-sp-remote.php
@@ -36,7 +36,7 @@ $metadata = array(
 	/*
 	 * Example simpleSAMLphp SAML 2.0 SP
 	 */
-	'saml2sp.example.org' => array(
+	'https://saml2sp.example.org' => array(
  		'AssertionConsumerService' => 'https://saml2sp.example.org/simplesaml/saml2/sp/AssertionConsumerService.php', 
  		'SingleLogoutService'      => 'https://saml2sp.example.org/simplesaml/saml2/sp/SingleLogoutService.php'
 	),