Try installing OpenAM on Amazon Linux

0. Introduction

Try installing OpenAM on Amazon Linux.

1. 1. Create an EC2 instance for Amazon Linux

  1. From the E2 console page, select the Amazon Linux AMI and create an EC2 instance.
    • AMI ID :
      • amzn-ami-hvm-2017.03.0.20170401-x86_64-gp2 (ami-859bbfe2)
    • Instance Type :
      • t2.micro
    • Security Groups :
      • SSH
      • HTTPS
  2. Then assign an Elastic IP.

2. Initial settings and security settings

  1. Make general initial settings and security settings.

3. 3. Install and work with Apache and Tomcat

  1. First, install Apache.
sudo yum install httpd
sudo chkconfig httpd on

2. Next, configure HTTPS settings.

sudo yum install openssl openssl-devel mod_ssl
sudo service httpd restart

3. Then install tomcat

sudo yum install java-1.7.0-openjdk-devel
sudo yum install tomcat7 tomcat7-webapps tomcat7-admin-webapps
sudo chkconfig tomcat7 on

4. Tomcat Web Application Manager Settings

diff /etc/tomcat7/tomcat-users.xml.ORG /etc/tomcat7/tomcat-users.xml
50c50
< <!-- <user name="admin" password="adminadmin" roles="admin,manager,admin-gui,admin-script,manager-gui,manager-script,manager-jmx,manager-status" /> -->
---
> <user name="admin" password="[PASSWORD]" roles="admin,manager,admin-gui,admin-script,manager-gui,manager-script,manager-jmx,manager-status" />

5. Setting up integration with Apache

diff /etc/tomcat7/server.xml.ORG /etc/tomcat7/server.xml
71c71
<     <Connector port="8080" protocol="HTTP/1.1"
---
>     <Connector port="8009" protocol="AJP/1.3" URIEncoding="UTF-8"

4. Get the OpenAM installation media

  1. Access the following site and log in. (You need to sign up for an account in advance)
  2. Click the Downloads link.
    • 1002.png
  3. Click the links in the following order.
    • product family ... : AM
    • produc ... : OpenAM Enterprise
    • release ... : 13.0.0
    • item ... : OpenAM 13
    • 1003.png
  4. The Download screen will be displayed. Select the "war" tab and press the "DOWNLOAD" button.
    • 1004.png

5. Install OpenAM

  1. Add the following settings to the Security Group and iptables inbound settings.
    • 1689 0.0.0.0/0
    • 4444 0.0.0.0/0
    • 50389 0.0.0.0/0
  2. Store the obtained installation media (OpenAM-13.0.0.war) in the following directory.
    • /usr/share/tomcat7/webapps/
  1. Access the site and press the "Manager App" button.
    • 3001.png
  2. The login dialog will be displayed. Enter the account information set in /etc/tomcat7/tomcat-users.xml to log in.
    • 3002.png
  3. When the "Tomcat Web Application Manager" screen is displayed, click the "/ openam" path link in the "Applications" list.
    • 3003.png
  4. When the "Setting Options" screen is displayed, click the "Create New Setting" link under "Custom Settings".
    • 0001.png
  5. The "License Agreement Confirmation" screen will be displayed. Check it and click the "Continue" button.
    • 0002.png
  6. The "Step 1: General-Custom Settings Options" screen will be displayed. Set the default user password and click the "Next" button.
    • 0003.png
  7. The "Step 2: Server Settings-Custom Settings Options" screen will be displayed. Set the following items and click the "Next" button.
  1. The "Step 3: Settings Datastore Settings-Custom Settings Options" screen will be displayed. Set the following items and click the "Next" button.
  1. The "Step 4: User Data Store Settings-Custom Settings Options" screen will be displayed. Set the following items and click the "Next" button.
  1. The "Step 5: Site Settings-Custom Settings Options" screen will be displayed. Set the following items and click the "Next" button.
  1. The "Step 6: Default Policy Agent User-Custom Settings Options" screen will be displayed. Set a password and click the "Next" button.
      * 0008.png
  2. The "Setting Tool Overview and Details-Custom Setting Options" screen will be displayed. Check it and click the "Create Settings" button.
      * 0009.png
  3. A dialog will appear, so wait for a while.
      * 0010.png
  4. But ... I'm not sure, but the completion screen is not displayed no matter how long I wait, so if the completion message is displayed in the following installation log file, it seems OK.
  1. When you access https: // ~ / openam /, the login screen will be displayed. Enter the set default user (amAdmin) account information, and if you can log in, the installation is complete.
      * 2001.png

6. Creation and replacement of signing key

Create a signing key based on the procedure on the following site and replace it with the signing key (test) set by default.

After creating the signing key Create a public key by referring to the following site.

7. Debug level change

Refer to the following site and change the debug level to "Message".

99. Addictive point

XX. Summary

Next, let's check the cooperation of various authentication functions.

Recommended Posts

Try installing OpenAM on Amazon Linux
Try NeosVR on Linux
Put jenv on Amazon Linux
Install tomcat 5.5 on Amazon Linux.
Use sshpass on Amazon linux2
Install Homebrew on Amazon Linux 2
Install strongSwan 5.9.1 on Amazon Linux 2
Install Python Pillow on Amazon Linux
Try running Amazon Linux 2 on-premises (VM on your local PC).
Install oracle java8 on amazon linux2
Install pyenv on EC2 (Amazon Linux)
[Note] Install Imagick on Amazon Linux2
[Note] Run Django on Amazon Linux 2
Run docker-compose on Amazon Linux2 on ARM64
Introduce Python 3.5.2 environment on Amazon Linux
Try installing OpenCV 3.0 on your AMI
Run cron on Amazon Linux (set on Linux)
Summary of installing PHP7.2 on EC2 (Amazon Linux 2) and setting php.ini
Use Numpy, Scipy, scikit-learn on Amazon Linux
How to update php on Amazon linux 2
Build an LNPP environment on Amazon Linux 2
Learn sshd_config and authorized_keys (on Amazon Linux 2)
Upgraded mysql on Cloud9 (Amazon Linux) (5.5 to 5,7)
How to install Anisble on Amazon Linux 2
Run Keycloak on Amazon Linux 2 without Docker
Install Python 3.8, Pip 3.8 on EC2 (Amazon Linux 2)
After installing Linux
Try installing Polynote
Try installing chainer-gogh
Try to create a new command on linux
Install PHP 7 series on Amazon Linux 2 with Amazon Linux Extras
Daemonizing processes on Linux
jblas on Arch Linux
Procedure for manually installing Java (jdk1.8) on Linux (CentOS7)
Try installing Sonnet (memo)
Linux (WSL) on Windows
NAT router on Linux
Publish your Django app on Amazon Linux + Apache + mod_wsgi
Notes on installing PycURL
Installing pandas on python2.6
Create an environment for MkDocs on Amazon Linux (attempted)
Develop .NET on Linux
Wake on lan on Linux
OpenVPN Summary + Amazon Linux2
Compile and install MySQL-python for python2.7 on amazon linux
Monitor traffic on Linux
Try FEniCS on Windows!
Update vscode on linux
[AWS EC2] How to install Maven on Amazon Linux 2
Try Poerty on Windows
Installing pyenv on ubuntu 16.04
Check capacity on Linux
How to build a Python environment on amazon linux 2
I tried installing the Linux kernel on virtualbox + vagrant
Try deepdream on Mac
Announcing the availability of Java 11 LTS on Amazon Linux 2
LiveUSB creation on Linux
[AWS] How to expand disk space on Amazon linux
Linux operation on Win10
Install LAMP on Amazon Linux 2 and build a WordPress environment.
[AWS EC2] Settings you want to do on Amazon Linux 2