Change cert default algorithm to RS256.

This commit is contained in:
Gucheng Wang
2022-05-06 09:34:42 +08:00
parent 1c949e415e
commit 39548d5d72
3 changed files with 4 additions and 4 deletions

View File

@ -147,7 +147,7 @@ func initBuiltInCert() {
DisplayName: "Built-in Cert", DisplayName: "Built-in Cert",
Scope: "JWT", Scope: "JWT",
Type: "x509", Type: "x509",
CryptoAlgorithm: "RSA", CryptoAlgorithm: "RS256",
BitSize: 4096, BitSize: 4096,
ExpireInYears: 20, ExpireInYears: 20,
PublicKey: tokenJwtPublicKey, PublicKey: tokenJwtPublicKey,

View File

@ -136,7 +136,7 @@ class CertEditPage extends React.Component {
})}> })}>
{ {
[ [
{id: 'RSA', name: 'RSA'}, {id: 'RS256', name: 'RS256'},
].map((item, index) => <Option key={index} value={item.id}>{item.name}</Option>) ].map((item, index) => <Option key={index} value={item.id}>{item.name}</Option>)
} }
</Select> </Select>

View File

@ -32,7 +32,7 @@ class CertListPage extends BaseListPage {
displayName: `New Cert - ${randomName}`, displayName: `New Cert - ${randomName}`,
scope: "JWT", scope: "JWT",
type: "x509", type: "x509",
cryptoAlgorithm: "RSA", cryptoAlgorithm: "RS256",
bitSize: 4096, bitSize: 4096,
expireInYears: 20, expireInYears: 20,
publicKey: "", publicKey: "",
@ -131,7 +131,7 @@ class CertListPage extends BaseListPage {
key: 'cryptoAlgorithm', key: 'cryptoAlgorithm',
filterMultiple: false, filterMultiple: false,
filters: [ filters: [
{text: 'RSA', value: 'RSA'}, {text: 'RS256', value: 'RS256'},
], ],
width: '190px', width: '190px',
sorter: true, sorter: true,