import re


def convert_openssl_version(version):
    """Convert OpenSSL package versions to match upstream's format

    >>> convert_openssl_version('1.1.1.k')
    '1.1.1k'
    """

    return re.sub(r'(.+)\.([a-z])', r'\1\2', version)