Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating certificate generation in examples #243

Merged
merged 2 commits into from
Apr 25, 2015

Conversation

ihamburglar
Copy link
Contributor

Hi all,

I was looking through the examples and noticed that they had not been looked at in a while, I thought that perhaps we should update them to be more in line with what is considered contemporary good practice. In this pull request:

  • md5->sha256 for signature
  • 1024->2048 for key length
  • added print statements to inform the user what keys were going where

open('simple/CA.pkey', 'w').write(crypto.dump_privatekey(crypto.FILETYPE_PEM, cakey))
print('Creating Certificate Authority certificate in \"simple/CA.cert\"')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The \ are not needed here, since you're using single quotes.

@alex
Copy link
Member

alex commented Apr 25, 2015

Besides that comment, this looks great. Thanks for doing this!

@coveralls
Copy link

Coverage Status

Coverage remained the same at 95.31% when pulling 4ca59a1 on elitest:updatesslexamples into 9a2c732 on pyca:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 95.31% when pulling 6b5d381 on elitest:updatesslexamples into 9a2c732 on pyca:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 95.31% when pulling 6b5d381 on elitest:updatesslexamples into 9a2c732 on pyca:master.

alex added a commit that referenced this pull request Apr 25, 2015
Updating certificate generation in examples
@alex alex merged commit f3fc99e into pyca:master Apr 25, 2015
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants