from saml2.assertion import Policy

HOST = '127.0.0.1'
PORT = 8087
HTTPS = False

# Which groups of entity categories to use
POLICY = Policy(
    {
        "default": {"entity_categories": ["swamid", "edugain"]}
    }
)

# HTTPS cert information
SERVER_CERT = "pki/ssl.crt"
SERVER_KEY = "pki/ssl.pem"
CERT_CHAIN = ""

from saml2.assertion import Policy

HOST = '127.0.0.1'
PORT = 8087
HTTPS = False

# Which groups of entity categories to use
POLICY = Policy(
    {
        "default": {"entity_categories": ["swamid", "edugain"]}
    }
)

# HTTPS cert information
SERVER_CERT = "pki/mycert.pem"
SERVER_KEY = "pki/mykey.pem"
CERT_CHAIN = ""

Update example HTTPS cert & key filenames.
Update example HTTPS cert & key filenames.

pki/my{cert,key}.pem are used for request payloads; set those as
the defaults for HTTPS as well.  Note that HTTPS isn't necessarily
in a working state - this just gets us a bit closer.

  from saml2.assertion import Policy
  
  HOST = '127.0.0.1'
  PORT = 8087
  HTTPS = False
  
  # Which groups of entity categories to use
  POLICY = Policy(
      {
          "default": {"entity_categories": ["swamid", "edugain"]}
      }
  )
  
  # HTTPS cert information
- SERVER_CERT = "pki/ssl.crt"
+ SERVER_CERT = "pki/mycert.pem"
- SERVER_KEY = "pki/ssl.pem"
+ SERVER_KEY = "pki/mykey.pem"
  CERT_CHAIN = ""
  
Update example HTTPS cert & key filenames.
## Code Before:
from saml2.assertion import Policy

HOST = '127.0.0.1'
PORT = 8087
HTTPS = False

# Which groups of entity categories to use
POLICY = Policy(
    {
        "default": {"entity_categories": ["swamid", "edugain"]}
    }
)

# HTTPS cert information
SERVER_CERT = "pki/ssl.crt"
SERVER_KEY = "pki/ssl.pem"
CERT_CHAIN = ""

## Instruction:
Update example HTTPS cert & key filenames.
## Code After:
from saml2.assertion import Policy

HOST = '127.0.0.1'
PORT = 8087
HTTPS = False

# Which groups of entity categories to use
POLICY = Policy(
    {
        "default": {"entity_categories": ["swamid", "edugain"]}
    }
)

# HTTPS cert information
SERVER_CERT = "pki/mycert.pem"
SERVER_KEY = "pki/mykey.pem"
CERT_CHAIN = ""
