You are looking for an $n\times n$ matrix $A$ whose square is equal to the identity. This means that the matrix satisfies the equation $x^2-1$, so its minimal polynomial must be $x-1$, $x+1$ or $x^2-1$. In the case of the first two, we have the two matrices you've already found, that is $I$ and $-I$.
Now, let's suppose the minimal polynomial is $x^2-1$. Notice this factors completely over $\mathbb{R}$ into distinct linear factors, which shows that $A$ is diagonalizable. This means there is an invertible matrix $P$ such that:
$$PAP^{-1}=D$$
where $D$ is a diagonal matrices, whose diagonal elements are the eigenvalues of $A$. In our case, the eigenvalues are $1$ and $-1$ (the roots of the minimal polynomial). Since the Jordan form representation is unique up to permutation of the Jordan blocks, we only need to know the algebraic multiplicity of the eigenvalues, in other words, how many $1$'s and how many $-1$'s are on the diagonal of $D$. Suppose $D_i$ is the $n\times n$ matrix with $i$ $1's$ on the diagonal, where $0\le i\le n$. Notice that $D_0=-I$ and $D_n=I$. Then all such involutions $A$ have the form:
$$A=P^{-1}D_iP$$