Skip to content

Commit

Permalink
feat: CRT generation also for private SP - for test purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
peppelinux committed May 13, 2022
1 parent 9871dc2 commit 30ae494
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spid_compliant_certificates/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
_maj = 0

# minor version
_min = 4
_min = 5

# micro version
_mic = 2
_mic = 0

# release level (alpha, beta, rc, final)
_rel = 'final'
Expand Down
4 changes: 2 additions & 2 deletions spid_compliant_certificates/generator/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ def gen_csr(key: rsa.RSAPrivateKey, cert_opts: Dict, crypto_opts: Dict) -> None:
fp.write(csr.public_bytes(serialization.Encoding.PEM))
fp.close()

# only for test purpose :)
# gen_self_signed(key, cert_opts, crypto_opts)
# this creates the CRT also for privates
gen_self_signed(key, cert_opts, crypto_opts)


def gen_self_signed(key: rsa.RSAPrivateKey, cert_opts: Dict, crypto_opts: Dict) -> None: # noqa
Expand Down

0 comments on commit 30ae494

Please sign in to comment.