diff --git a/.gitignore b/.gitignore index 524b021..9bfed08 100644 --- a/.gitignore +++ b/.gitignore @@ -109,3 +109,41 @@ example/sp/sp_conf_local.py example/sp/my_backup_sp_conf_local.py example/sp/backup_sp_conf_local.py + +example/idp2/pki/localhost.ca.crt + +example/idp2/pki/localhost.ca.crt + +example/idp2/pki/localhost.ca.key + +example/idp2/pki/localhost.ca.key + +example/sp/pki/localhost.ca.crt + +example/sp/pki/localhost.ca.crt + +example/sp/pki/localhost.ca.key + +example/sp/pki/localhost.ca.key + +example/idp2/idp_conf_dirgweb.py + +example/idp2/idp_conf_nocert.py + +example/idp2/idp_conf_proxy.py + +example/idp2/idp_nocert.xml + +example/sp/nocert_sp_conf/sp_nocert.xml + +example/sp/normal_sp_conf/sp.xml + +example/sp/normal_sp_conf/sp_conf.py + +example/sp/normal_sp_conf/who.ini + +example/sp/sp_nocert.xml + +example/sp/sp_nocert2.xml + +example/sp/test.py diff --git a/example/sp/pki/certgeneration.py b/example/sp/pki/certgeneration.py new file mode 100644 index 0000000..bcdd110 --- /dev/null +++ b/example/sp/pki/certgeneration.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +from saml2.cert import OpenSSLWrapper + +__author__ = 'haho0032' + + +cert_info_ca = { + "cn": "localhost.ca", + "country_code": "se", + "state": "ac", + "city": "umea", + "organization": "ITS Umea University", + "organization_unit": "DIRG" +} + +osw = OpenSSLWrapper() + +ca_cert, ca_key = osw.create_certificate(cert_info_ca, request=False, write_to_file=True, + cert_dir="./") \ No newline at end of file