Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible: Replace openssl_certificate_info with command #247

Merged

Conversation

mnecas
Copy link
Member

@mnecas mnecas commented Apr 7, 2022

Since ansible-core 2.12 we no longer have available community modules and need to switch to commands.
The openssl_certificate_info was checking for the information of the certificate if it contained an alternative name of variable ovirt_vds_hostname. Now we are using a simple OpenSSL command query to get the alternative name openssl x509 -noout -ext subjectAltName -in FILE.
The output of the command for example is:

X509v3 Subject Alternative Name: 
    IP Address:192.168.122.164

Before we got it in subject_alt_name.

    "subject_alt_name": [
        "IP:192.168.122.164"
    ],

@mnecas mnecas requested a review from mwperina as a code owner April 7, 2022 16:36
Copy link
Member

@mwperina mwperina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@mwperina mwperina merged commit 602360e into oVirt:master Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants