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

rm ca.srl #530

Closed
wants to merge 3 commits into from
Closed

rm ca.srl #530

wants to merge 3 commits into from

Conversation

gongweibao
Copy link
Collaborator

@gongweibao gongweibao commented Dec 20, 2017

Fix #531

@@ -36,6 +36,7 @@ def create_user_cert(ca_path, username):
%s/%s.csr -subj \"/CN=%s\""%\
(user_cert_dir, username,
user_cert_dir, username, username))
user_cert_cmds.append("rm -f %s/ca.srl" % settings.USER_CERTS_PATH)
Copy link
Collaborator

Choose a reason for hiding this comment

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

In my own curiosity, why delete this file, or could you add some comments here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@@ -36,6 +36,9 @@ def create_user_cert(ca_path, username):
%s/%s.csr -subj \"/CN=%s\""%\
(user_cert_dir, username,
user_cert_dir, username, username))
# FIXME(gongwb):why need delete ca.srl when mount afs path while not need
Copy link
Collaborator

Choose a reason for hiding this comment

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

FIXME(gongwb): The file ca.srl containing a serial number will cause an error on the AFS (mount local path by VFS ), delete this file for temporary and make the code work!

@CLAassistant
Copy link

CLAassistant commented Mar 23, 2020

CLA assistant check
All committers have signed the CLA.

@xiaolao xiaolao closed this Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't load number from ca.srl.
4 participants