File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,15 @@ def idp_configure(self, metadata_construction=False):
116
116
self .idp_config .ca_certs = self .args .ca_certs
117
117
else :
118
118
self .idp_config .ca_certs = "../keys/cacert.pem"
119
+ # hack to change idp cert without config change. TODO: find interface to
120
+ # change IDP cert after __init__
121
+ if self .args .oper == 'sp-04' :
122
+ self .idp_config .cert_file = os .path .join (self .args .keysdir , "non_md_cert.pem" )
123
+ self .idp_config .key_file = os .path .join (self .args .keysdir , "non_md_key.pem" )
124
+ for f in [self .idp_config .cert_file , self .idp_config .key_file ]:
125
+ if not os .path .isfile (f ):
126
+ print "File not found: %s" % os .path .abspath (f )
127
+ raise
119
128
120
129
self .idp = Server (config = self .idp_config )
121
130
You can’t perform that action at this time.
0 commit comments