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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions paddlecloud/notebook/tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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!

# when mount hostpath?
user_cert_cmds.append("rm -f %s/ca.srl" % settings.USER_CERTS_PATH)
user_cert_cmds.append("openssl x509 -req -in %s/%s.csr -CA %s -CAkey %s \
-CAcreateserial -out %s/%s.pem -days 365"% \
(user_cert_dir, username,
Expand Down