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

SuspiciousFileOperation at /admin/pyas2/privatecertificate/add/ #48

Open
bee-keeper opened this issue Jul 16, 2018 · 0 comments
Open

SuspiciousFileOperation at /admin/pyas2/privatecertificate/add/ #48

bee-keeper opened this issue Jul 16, 2018 · 0 comments

Comments

@bee-keeper
Copy link

Hi there,

When uploading the private key I get this error.

The joined path (/pyas2/certificates/as2_private.pem) is located outside of the base path component (/media)

It seems that's due to this line below but I'm left wondering how this hasn't come up before? It feels to me like it would be better to reference the path to these keys in the settings dict rather than using upload in admin?

https://github.com/abhishek-ram/pyas2/blob/master/pyas2/models.py#L19

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

No branches or pull requests

1 participant