I'm currently trying to enable Authentication via Azure Active Directory for a Jenkins that's running via Azure's Virtual Machine service (not App Services). I've used Microsoft's tutorial on setting up the server as well as installing the Azure AD plugin and following the instructions the plugin page to set up the authentication. I've almost got it working, but when actually trying to login, I get the following error message:
AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: '<GUID goes here>'
Upon a closer look, there's a mismatch with the reply URL because the Jenkins server is currently using HTTP while the reply URL is using HTTPS. Since a reply URL must be HTTPS, I'm currently trying to enable HTTPS for the Jenkins server. In my research, most of it involves App Services, but I'm mainly trying to enable it for virtual machines.
When I tried this in AWS, I learned that you couldn't use tools that supply a free SSL certificate since the virtual machine could be swapped out at anytime. I'm not sure if Azure has the same behavior.
Can I use one of the free tools like LetsEncrypt or do I need to buy an SSL certificate for the case of virtual machines?
redirect_uri. Thus, I'm trying to convert the VM to use HTTPS so that there's no more mismatch. - Joseph Woolflocalhostor do I need an actual FQDN? - Joseph Woolf./letsencrypt-auto --config /etc/letsencrypt/configs/localhost.conf certonly, I get the following error:Requesting to rerun ./letsencrypt-auto with root privileges... Skipping bootstrap because certbot-auto is deprecated on this system. Your system is not supported by certbot-auto anymore. Certbot cannot be installed.- Joseph Woolf