diff --git a/object/init.go b/object/init.go index 72b0c08d..339500d8 100644 --- a/object/init.go +++ b/object/init.go @@ -147,7 +147,7 @@ func initBuiltInCert() { DisplayName: "Built-in Cert", Scope: "JWT", Type: "x509", - CryptoAlgorithm: "RSA", + CryptoAlgorithm: "RS256", BitSize: 4096, ExpireInYears: 20, PublicKey: tokenJwtPublicKey, diff --git a/web/src/CertEditPage.js b/web/src/CertEditPage.js index e4f30af9..856c7aa2 100644 --- a/web/src/CertEditPage.js +++ b/web/src/CertEditPage.js @@ -136,7 +136,7 @@ class CertEditPage extends React.Component { })}> { [ - {id: 'RSA', name: 'RSA'}, + {id: 'RS256', name: 'RS256'}, ].map((item, index) => ) } diff --git a/web/src/CertListPage.js b/web/src/CertListPage.js index c895912d..c1d18c60 100644 --- a/web/src/CertListPage.js +++ b/web/src/CertListPage.js @@ -32,7 +32,7 @@ class CertListPage extends BaseListPage { displayName: `New Cert - ${randomName}`, scope: "JWT", type: "x509", - cryptoAlgorithm: "RSA", + cryptoAlgorithm: "RS256", bitSize: 4096, expireInYears: 20, publicKey: "", @@ -131,7 +131,7 @@ class CertListPage extends BaseListPage { key: 'cryptoAlgorithm', filterMultiple: false, filters: [ - {text: 'RSA', value: 'RSA'}, + {text: 'RS256', value: 'RS256'}, ], width: '190px', sorter: true,