After succesfully adding a relying party with a https url the url changes to http.
I saw that the real is saved in the database without a protocol prefix.
I found the problem:
When the real is filled:
Realm = new Uri("http://" + rpEntity.Realm
When the real is saved:
Realm = relyingParty.Realm.AbsoluteUri.StripProtocolMoniker()
Is there are reason to strip the protocol?