Added a file for cert generation and updated gitignore.
This commit is contained in:
38
.gitignore
vendored
38
.gitignore
vendored
@@ -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
|
||||
|
20
example/sp/pki/certgeneration.py
Normal file
20
example/sp/pki/certgeneration.py
Normal 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="./")
|
Reference in New Issue
Block a user