luci-proto-openconnect: relax key checking
authorJo-Philipp Wich <jo@mein.io>
Wed, 29 Mar 2023 13:32:44 +0000 (15:32 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 3 Apr 2023 11:51:44 +0000 (13:51 +0200)
commit230ba69c5192ff4474e628f8bbbfa09fff3071ab
treef3d64356d71e88773b5882c531ef775027cbd270
parentb47268a8626a55fcd3f7469ebec6d3502b6464d6
luci-proto-openconnect: relax key checking

Valid keys may begin/end with `-----BEGIN PRIVATE KEY-----` and
`-----END PRIVATE KEY-----` so make the `RSA` keyword optional.

Fixes: #6319
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit b8ee30589bd3e9037e7c7a8a5a1e8c1048afaf2f)
protocols/luci-proto-openconnect/htdocs/luci-static/resources/protocol/openconnect.js