Skip to content

Commit 7585d46

Browse files
author
Hans Hörberg
committed
Added a file for cert generation and updated gitignore.
1 parent fbb8c10 commit 7585d46

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.gitignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,41 @@ example/sp/sp_conf_local.py
109109
example/sp/my_backup_sp_conf_local.py
110110

111111
example/sp/backup_sp_conf_local.py
112+
113+
example/idp2/pki/localhost.ca.crt
114+
115+
example/idp2/pki/localhost.ca.crt
116+
117+
example/idp2/pki/localhost.ca.key
118+
119+
example/idp2/pki/localhost.ca.key
120+
121+
example/sp/pki/localhost.ca.crt
122+
123+
example/sp/pki/localhost.ca.crt
124+
125+
example/sp/pki/localhost.ca.key
126+
127+
example/sp/pki/localhost.ca.key
128+
129+
example/idp2/idp_conf_dirgweb.py
130+
131+
example/idp2/idp_conf_nocert.py
132+
133+
example/idp2/idp_conf_proxy.py
134+
135+
example/idp2/idp_nocert.xml
136+
137+
example/sp/nocert_sp_conf/sp_nocert.xml
138+
139+
example/sp/normal_sp_conf/sp.xml
140+
141+
example/sp/normal_sp_conf/sp_conf.py
142+
143+
example/sp/normal_sp_conf/who.ini
144+
145+
example/sp/sp_nocert.xml
146+
147+
example/sp/sp_nocert2.xml
148+
149+
example/sp/test.py

example/sp/pki/certgeneration.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
from saml2.cert import OpenSSLWrapper
4+
5+
__author__ = 'haho0032'
6+
7+
8+
cert_info_ca = {
9+
"cn": "localhost.ca",
10+
"country_code": "se",
11+
"state": "ac",
12+
"city": "umea",
13+
"organization": "ITS Umea University",
14+
"organization_unit": "DIRG"
15+
}
16+
17+
osw = OpenSSLWrapper()
18+
19+
ca_cert, ca_key = osw.create_certificate(cert_info_ca, request=False, write_to_file=True,
20+
cert_dir="./")

0 commit comments

Comments
 (0)