[VERIFICATION DONE]
-----
ubuntu series tested: bionic
MAAS name: ubuntu-bionic MAAS
MAAS version: 2.4.2 (7034-g2f5deb8b8-0ubuntu1)
sudo apt-get remove python-httplib2
dpkg -l PKGNAME | cat
sudo apt-get install python-httplib2
package version installed: 0.9.2+dfsg-1ubuntu0.3
sudo apt-get install maas
sudo maas init
-- fill out questions
# create 2 users secure & unsecure
maas createadmin
username: testadmin
username: secureadmin
sudo maas apikey --username=testadmin > api-key-testadmin
sudo maas apikey --username=testadmin > api-key-secureadmin
sudo apt get update
sudo apt-get install nginx
touch /etc/nginx/sites-available/maas-https-default
# copy and paste from here:
server {
listen 443 ssl http2;
server_name _;
ssl_certificate /home/ubuntu/localhost.crt;
ssl_certificate_key /home/ubuntu/localhost.key;
location / {
proxy_pass http://localhost:5240;
include /etc/nginx/proxy_params;
}
location /MAAS/ws {
proxy_pass http://127.0.0.1:5240/MAAS/ws;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
}
vim /etc/nginx/sites-available/maas-https-default
# restart ngnix
sudo service nginx restart
# create maas login scripts
touch maas-login.sh
# contents of maas-login.sh
#!/bin/sh
PROFILE=testadmin
API_KEY_FILE=/root/api-key-testadmin
API_SERVER=127.0.0.1:5240
MAAS_URL=http://$API_SERVER/MAAS
touch https-maas-login.sh
# contents of https-maas-login.sh
#!/bin/sh
PROFILE=secureadmin
API_KEY_FILE=/root/api-key-secureadmin
API_SERVER=localhost
MAAS_URL=https://$API_SERVER/MAAS
maas login $PROFILE $MAAS_URL - < $API_KEY_FILE
sudo chmod +rwx maas-login.sh
sud./maas-login.sh o chmod +rwx https-maas-login.sh
cd /etc/nginx/sites-enabled
sudo touch maas-https-default
vim maas-https-default
sudo ln -s /etc/nginx/sites-available/maas-https-default
/etc/nginx/sites-enabled
# login to maas with unsecure & secure user
./maas-login.sh
./https-maas-login.sh
# console output
root@ubuntu-bionic:~# ./https-maas-login.sh
You are now logged in to the MAAS server at
https://localhost/MAAS/api/2.0/ with the profile name 'secureadmin'.
For help with the available commands, try:
maas secureadmin --help
root@ubuntu-bionic:~# exit
# reverse sshuttle if needed to check gui login
sshuttle -r root@<container ip addr> 127.0.0.1/0
** Tags removed: verification-needed-bionic
** Tags added: verification-done-bionic
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1906720
Title:
Fix the disable_ssl_certificate_validation option
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-httplib2/+bug/1906720/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs