Is this actually in PKCS8 format? The PEM header implies it's not. I did see this in the OpenSSL docs regarding DSA PKCS8:

    The format of PKCS#8 DSA (and other) private keys is not well documented: it is hidden away in PKCS#11 v2.01,
    section 11.9. OpenSSL's default DSA PKCS#8 private key format complies with this standard.

I also see options for [generating](https://www.openssl.org/docs/apps/pkcs8.html) all sorts of weird "broken" encodings.