Commit 54c1db88 authored by Sietse Ringers's avatar Sietse Ringers

fix: broken privkeys option to irma server

Fixes #89
parent 2712311d
Pipeline #42051 passed with stages
in 4 minutes and 31 seconds
......@@ -183,10 +183,10 @@ func (conf *Configuration) verifyIrmaConf() error {
}
}
// Put private keys into conf.IrmaConfiguration so we can use conf.IrmaConfiguration.PrivateKey()
if len(conf.IssuerPrivateKeys) > 0 {
conf.IrmaConfiguration.PrivateKeys = conf.IssuerPrivateKeys
if len(conf.IssuerPrivateKeys) == 0 {
conf.IssuerPrivateKeys = make(map[irma.IssuerIdentifier]map[uint]*gabi.PrivateKey)
}
conf.IrmaConfiguration.PrivateKeys = conf.IssuerPrivateKeys
if len(conf.IrmaConfiguration.SchemeManagers) == 0 {
conf.Logger.Infof("No schemes found in %s, downloading default (irma-demo and pbdf)", conf.SchemesPath)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment