def get_openssl_url_version(version):
    """
    Get the OpenSSL URL version part from the openssl version string.
    """
    if version[:3] == "3.0":
        return "3.0"
    tokens = version.split(".")
    if len(tokens) > 2:
        return ".".join(tokens[:2] + [tokens[2][0],])
    return version