- for (contents,name) in [ (keys[0]['private'], self.piuser+'.pkey'),
- (keys[0]['key_fields']['key'], self.piuser+'.pub'),
- (keys[1]['private'], self.regularuser+'.pkey'),
- (keys[0]['key_fields']['key'], self.regularuser+'.pub'),
+ # fetch keys in config spec and expose to sfi
+ for (key_key,name) in [ ('pi_private_key', self.piuser+'.pkey'),
+ ('pi_public_key', self.piuser+'.pub'),
+ ('user_private_key', self.regularuser+'.pkey'),
+ ('user_public_key', self.regularuser+'.pub'),