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

SnappyMail Nextcloud 2.35.4 S/Mime Signature gone #1505

Closed
martintm86 opened this issue Mar 18, 2024 · 3 comments
Closed

SnappyMail Nextcloud 2.35.4 S/Mime Signature gone #1505

martintm86 opened this issue Mar 18, 2024 · 3 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request workaround

Comments

@martintm86
Copy link

Since the last Update today to 2.35.4 in my Nextcloud the S/Mime Signature feauture have an issue. The button is gone.
I have deleted the data directory and reconfigured my Account with s/mime. But the problem still exists.
Please Fix. If you need more information or if i can Test anything for you please contact me...
Encryption is ok. But without s/Mime signature too...

Bildschirmfoto 2024-03-18 um 13 36 19

Bildschirmfoto 2024-03-18 um 13 40 04

@the-djmaze
Copy link
Owner

the-djmaze commented Mar 18, 2024

Your private key is marked in red.
The problem is RSA on the first line as SnappyMail only accepts ENCRYPTED or none-password protected.

smimeKeyValid: () => /^-----BEGIN (ENCRYPTED )?PRIVATE KEY-----/.test(this.smimeKey()),

RSA is an old PKCS1 format, where without it is PKCS8.
Use openssl pkcs8 -topk8 ... to convert it.

You should set a password for protection, else anyone can use your private key.

If it worked before, i will add RSA in the validity check.

@the-djmaze the-djmaze added documentation Improvements or additions to documentation workaround labels Mar 18, 2024
@martintm86
Copy link
Author

Ok Thank you! Now in pkcs8 anything is ok. A little Error Message will be perfect here...
;-)

@the-djmaze the-djmaze added the enhancement New feature or request label Mar 18, 2024
@the-djmaze
Copy link
Owner

the-djmaze commented Mar 18, 2024

A little Error Message will be perfect here...

Well, i just added a "change passphrase" interface for easy converting the insecure RSA keys 😄
Not everyone knows how to (or can) use openssl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request workaround
Projects
None yet
Development

No branches or pull requests

2 participants