Update `PemPrivateKeyParser` so that the algorithm is read using DerElement whenever possible. See gh-39162
static