Brand new installation and managed to lock myself out, again. :(
Like I said, I did a new installation (Ubuntu 18.04) and everything was well. I then decided before changing the authorization mechanism to get my SSL in order.
I requested a LetsEncrypt certificate, copied the certificate and public key to /etc/certs, renamed the certificate and public key in the Apache virtual server config and restarted Apache.
Now when trying to login I can see the new certificate in the browser, however after login I'm presented with the following message:
```
Something wrong happened.
Login failed, oxTrust wasn't allowed to access user data
```
Clicking the back button loops me to the same message again. I can only get to the login screen again by clearing cookies etc.
The oxauth.log shows the following:
```
2019-05-04 23:06:05,670 INFO [qtp804611486-14] [org.xdi.oxauth.service.AuthenticationService] (AuthenticationService.java:533) - Attempting to redirect user: SessionUser: SessionState {dn='oxAuthSessionId=9c3bbf14-8f93-4b0a-ad67-6b4b60378546,ou=session,o=@!D4C8.540E.BBA1.FE99!0001!261E.050C,o=gluu', id='9c3bbf14-8f93-4b0a-ad67-6b4b60378546', lastUsedAt=Sat May 04 23:06:05 UTC 2019, userDn='inum=@!D4C8.540E.BBA1.FE99!0001!261E.050C!0000!A8F2.DE1E.D7FB,ou=people,o=@!D4C8.540E.BBA1.FE99!0001!261E.050C,o=gluu', authenticationTime=Sat May 04 23:06:05 UTC 2019, state=authenticated, sessionState='5b9efca1b3cd3ee6672e851e33c53032e446b3940441961a4327df978676bfb7.9714e576-068a-4ee5-834c-944fe926626f', permissionGranted=null, isJwt=false, jwt=null, permissionGrantedMap=org.xdi.oxauth.model.common.SessionIdAccessMap@5d416c6f, involvedClients=null, sessionAttributes={auth_external_attributes=null, opbs=3c3ec51e-da61-4f56-b902-aed56029462b, response_type=code, nonce=c557a362-2cd9-43e4-a609-d980abe52d80, client_id=@!D4C8.540E.BBA1.FE99!0001!261E.050C!0008!EBDF.21D5, auth_step=1, acr=auth_ldap_server, remote_ip=83.163.46.235, auth_user=admin, scope=openid profile email user_name, acr_values=auth_ldap_server, redirect_uri=https://idp.mastersinweb.hosting/identity/authentication/getauthcode, state=54254530-9510-49ca-a405-a69e3bbea349}, persisted=true}
2019-05-04 23:06:05,671 INFO [qtp804611486-14] [org.xdi.oxauth.service.AuthenticationService] (AuthenticationService.java:541) - Attempting to redirect user: User: org.xdi.oxauth.model.common.User@235d3550
2019-05-04 23:06:05,672 INFO [qtp804611486-14] [org.xdi.oxauth.auth.Authenticator] (Authenticator.java:409) - Authentication success for User: 'admin'
```
As far as I can see the authentication was successful, but something after that goes wrong.
Any ideas on what might cause this? For the moment I'll try reverting back to old default certificate to see if that solves anything.