diff --git a/assets/generate_jwkset.py b/assets/generate_jwkset.py deleted file mode 100755 index 4d81ebc75..000000000 --- a/assets/generate_jwkset.py +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env python -# -# Copyright 2014 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import base64 -import binascii -import sys - -#TEST_KEY_ID = "0123456789012345" -#TEST_KEY = "ebdd62f16814d27b68ef122afce4ae3c" - -key_id = base64.b64encode(sys.argv[1]).rstrip("=") -key = base64.b64encode(binascii.unhexlify(sys.argv[2])).rstrip("=") - -jwk = '{"kty":"oct","alg":"A128KW","kid":"%s","k":"%s"}' % (key_id, key) -jwk_set = '{"keys":[%s]}' % jwk -sys.stdout.write(jwk_set) diff --git a/assets/test_license.json b/assets/test_license.json index 7c4ca91f8..c8abd5c34 100644 --- a/assets/test_license.json +++ b/assets/test_license.json @@ -1 +1 @@ -{"keys":[{"kty":"oct","alg":"A128KW","kid":"MDEyMzQ1Njc4OTAxMjM0NQ","k":"691i8WgU0nto7xIq/OSuPA"}]} \ No newline at end of file +{"keys":[{"kty":"oct","alg":"A128KW","kid":"MDEyMzQ1Njc4OTAxMjM0NQ","k":"691i8WgU0nto7xIq_OSuPA"}]}