Commit 72d54ddd authored by Andreea Muscalu's avatar Andreea Muscalu

Fix bugs

parent 05682817
......@@ -108,4 +108,4 @@ How to update existing app
```
sqlite3 id.db 'DELETE FROM identity_authority WHERE host = "id.denic.de"';
```
**WARNING**: if you do this, you must also update your RSA keys.
\ No newline at end of file
**WARNING**: if you do this, you must also update your `private-key.pem` & `main.cfg` with a new agent name.
\ No newline at end of file
......@@ -153,7 +153,7 @@ def request_dns_challenge(domain, email):
try:
challenge = response['challenge']
except KeyError:
raise Unauthorized('Cannot start challenge. Response from authority: {}'.format(data))
raise Unauthorized('Cannot start challenge. Response from authority: {}'.format(response))
Registration.create_registration(domain, email)
Registration.new_challenge(domain, challenge['token'], challenge['url'])
......
......@@ -323,7 +323,7 @@ class IdentityAuthority(db.Model):
.filter(cls.host == identity_authority) \
.first()
if not ia:
ia = cls(host=agent_configuration)
ia = cls(host=identity_authority)
ia.agent_configuration=agent_configuration
db.session.add(ia)
db.session.commit()
......
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