WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  WebSphere in AWS and self-signed certificates

    Posted Wed May 03, 2023 12:43 PM

    Hi,

    Our customer is running WebSphere traditional profile based edition v9 in AWS. The hosts are rebuilt nightly and are placed in an auto-scaling group (ASG). In order to access the WebSphere console we just retrieve the IP from the EC2 instances in the AWS console. However the customer's desktop environment is now moving to Windows 11 and I believe (though haven't seen it in practice yet) the browsers will not support (a) IP based SSL certificates and (b) self-signed SSL certificates so this means the default certificate generated on the installation of WAS is no longer acceptable. This isn't an issue in static environments where we can provision CA signed certificated but where they are in an ASG the hostname continually changes. Has anyone come across a best practice of how to handle this (might be more of an AWS question but I figured I would give it a spin here first)?

    Thanks,

    Paul



    ------------------------------
    Paul Fearon
    ------------------------------


  • 2.  RE: WebSphere in AWS and self-signed certificates

    Posted Thu May 04, 2023 06:12 AM
    Yes, you are right, this is more an AWS question. I do not think there is a WAS solution to that, unless you use wildcard certificates. The issue here is that you need a signed certificate which usually is created to a specific CN, despite you can also use wildcard CNs, but it is not something usually you want to use for security reasons. 
    So what you need is to be sure that WAS is configured to use always the same hostname, you can do that by configuring AWS Route 53 alias / CNAME with this hostname that points to the load balancer that I suppose you have in front of your ASG. Your CA will create a signed certificate with the CN=hostname of the load balancer, each time you rebuild the machine you use an AMI that was created using an EC2 where the keystore with the certificate was added to WAS and the configuration is made to use this certificate, here you can use a WAS script to execute the SSL configuration to use that alias certificate instead of the self-signed.

    If you decide to use the wildcard certificate, you add it once to the WAS keystone, and mo matter what is the hostname that is created for your EC2 , because the domain is always the same, but I remind you that this is not very secure.

    João Pedro Alexandre
    Senior Lead, Infrastructure Specialist
    Kyndryl Consult 
     
    2939117300*image003.png

    Unless stated otherwise above:
    KNDRL SERVICES PORTUGAL, S.A.
    Sociedade Anónima com o Capital Social de € 11.000.000
    Registada na Conservatória do Registo Comercial de Lisboa, sob o número único fiscal e de matrícula  516360558
    Edifício "Office Oriente" - Rua do Mar da China, Nº 3, Parque das Nações, 1990-138 LISBOA





  • 3.  RE: WebSphere in AWS and self-signed certificates

    Posted Tue May 09, 2023 11:18 AM

    Perfect thanks for the response.

    Paul



    ------------------------------
    Paul Fearon
    ------------------------------



  • 4.  RE: WebSphere in AWS and self-signed certificates

    Posted Wed May 10, 2023 09:15 AM

    On the topic of IP addresses, I do believe certificates have a Subject Alternative Name (SAN) IP field that could be filled out, but you'd have to generate a certificate with that field containing an IP address (or multiple addresses) that would be valid for this appserver instance (as you put it mildly, you grab the IP address to access and log into the admin console), so you would still need to have a CA likely create your certificate anyway, and have it installed into the appropriate keystores accordingly. 

    SAN also has a DNS field to add multiple domain names (hostnames) in a similar manner.



    ------------------------------
    MICHAEL SCHNEIDER
    ------------------------------



  • 5.  RE: WebSphere in AWS and self-signed certificates

    Posted Mon May 15, 2023 12:31 PM

    Hi Paul, 

    We had similar situation for IIS, we had to maintain the Hostname for the ec2 instance everytime we wanted to move it to a different account or region. Amazon certificate manager was useful to generate/import same certs ( this way you retain the hostname to the CN name) and export/import across amazon certificate manger provisioned to the region and respective accounts. This could be a possible way to try for WAS, haven't done so but logically sounds similar situation to me.



    ------------------------------
    Shivraj M
    ------------------------------