Skip to content

Commit

Permalink
feat: extending crypto support, sub pr4; #142;
Browse files Browse the repository at this point in the history
  • Loading branch information
smansoft committed Jan 22, 2022
1 parent 57d0fa0 commit ceb8658
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jans-ce-setup/setup_app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def progress(self, service_name, msg, incr=False):

# OpenID key generation default setting
self.default_openid_jks_dn_name = 'CN=Jans Auth CA Certificates'
self.default_sig_key_algs = 'RS256 RS384 RS512 ES256 ES256K ES384 ES512 PS256 PS384 PS512 Ed25519 Ed448'
self.default_sig_key_algs = 'RS256 RS384 RS512 ES256 ES256K ES384 ES512 PS256 PS384 PS512 EdDSA'
self.default_enc_key_algs = 'RSA1_5 RSA-OAEP ECDH-ES'
self.default_key_expiration = 365

Expand Down
2 changes: 1 addition & 1 deletion jans-ce-setup/setup_app/installers/jans_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def generate_configuration(self):
Config.encoded_admin_password = self.ldap_encode(Config.admin_password)

self.logIt("Generating OAuth openid keys", pbar=self.service_name)
sig_keys = 'RS256 RS384 RS512 ES256 ES256K ES384 ES512 PS256 PS384 PS512 Ed25519 Ed448'
sig_keys = 'RS256 RS384 RS512 ES256 ES256K ES384 ES512 PS256 PS384 PS512 EdDSA'
enc_keys = 'RSA1_5 RSA-OAEP ECDH-ES'
jwks = self.gen_openid_jwks_jks_keys(self.oxauth_openid_jks_fn, Config.oxauth_openid_jks_pass, key_expiration=2, key_algs=sig_keys, enc_keys=enc_keys)
self.write_openid_keys(self.oxauth_openid_jwks_fn, jwks)
Expand Down
4 changes: 2 additions & 2 deletions jans-ce-setup/static/scripts/key_regeneration.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
oxauth_keys_json_fn = 'jans-keys.json'

algs_for_versions = {
'1.0.0': {'sig_keys': 'RS256 RS384 RS512 ES256 ES256K ES384 ES512 PS256 PS384 PS512 Ed25519 Ed448', 'enc_keys': 'RSA1_5 RSA-OAEP ECDH-ES'},
'1.0.0': {'sig_keys': 'RS256 RS384 RS512 ES256 ES256K ES384 ES512 PS256 PS384 PS512 EdDSA', 'enc_keys': 'RSA1_5 RSA-OAEP ECDH-ES'},
}

sig_keys = 'RS256 RS384 RS512 ES256 ES256K ES384 ES512 PS256 PS384 PS512 Ed25519 Ed448'
sig_keys = 'RS256 RS384 RS512 ES256 ES256K ES384 ES512 PS256 PS384 PS512 EdDSA'
enc_keys = 'RSA1_5 RSA-OAEP ECDH-ES'


Expand Down

0 comments on commit ceb8658

Please sign in to comment.