Ke Wang 4c81fd7d16
feat: fix generating wrong x.509 private key file header (#1253)
According to the [official x509 documentation](https://pkg.go.dev/crypto/x509#MarshalPKCS1PrivateKey), the private key generated using `x509.MarshalPKCS1PrivateKey` starts with `-----BEGIN RSA PRIVATE KEY-----` instead of `-----BEGIN PRIVATE KEY-----`. Otherwise, it will not be parsed by most tools (like OpenSSL, [jwt.io](https://jwt.io/), etc.) because it does not conform to the specification.
2022-11-01 22:19:38 +08:00
..
2022-02-13 23:39:27 +08:00
2022-09-29 19:45:17 +08:00
2022-08-07 15:45:06 +08:00
2022-09-29 19:45:17 +08:00
2022-03-14 20:49:03 +08:00
2022-02-13 23:39:27 +08:00
2022-02-13 23:39:27 +08:00
2022-02-13 23:39:27 +08:00
2022-03-19 23:15:19 +08:00
2022-08-09 16:50:49 +08:00
2021-10-30 14:18:48 +08:00
2021-10-30 14:18:48 +08:00
2022-02-13 23:39:27 +08:00
2022-09-22 20:51:50 +08:00
2022-02-13 23:39:27 +08:00
2022-02-13 23:39:27 +08:00