Added a file for cert generation and updated gitignore.

This commit is contained in:
Hans Hörberg
2014-02-14 09:20:17 +01:00
parent fbb8c100c3
commit 7585d46abd
2 changed files with 58 additions and 0 deletions

38
.gitignore vendored
View File

@@ -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

View File

@@ -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="./")