Charmed OpenSearch

Channel Revision Published Runs on
2/edge 90 08 May 2024
Ubuntu 22.04
juju deploy opensearch --channel 2/edge
Show information

Platform:

Ubuntu
22.04

charms.opensearch.v0.helper_security

Helpers for security related operations, such as password generation etc.


def generate_password()

Generate a random password string.

Returns

A random password string.

def generate_hashed_password()

Generates a password and its bcrypt hash.

Returns

A hash and the original password

def cert_expiration_remaining_hours(cert: string)

Description

Returns the remaining hours for the cert to expire. None

def normalized_tls_subject(subject: string)

Description

Removes any / character from a subject. None

def rfc2253_tls_subject(subject: string)

Description

Format the subject as per RFC2253 (inverted and , instead of /). None

def to_pkcs8(
    private_key: str,
    password
)

Description

Convert a PEM key to PKCS8. None