Skip to content

S/MIME Public key import fails #13361

Description

@Baiyah7o

Steps to reproduce

  1. Go to mail
  2. Mail settings
  3. S/MIME
  4. Manage certificates
  5. Import certificates
  6. Select PEM
  7. Browse to select PEM certificate containing the private key
  8. Error Failed to import the certificate on submit

Expected behavior

The public key has been created with openssl x509 -in INFILE.p12 -pubkey -noout > OUTFILE.pem. The import should have added the public key to the S/MIME certificates.

Actual behavior

On submit the error notification Failed to import the certificate is displayed. Error log is attached.
errorlog.json

The import succeeds if the private key is included in the PEM file with openssl x509 -in INFILE.p12 -pubkey > OUTFILE.pem.

Mail app version

5.10.9

Nextcloud version

34.0.2

Mailserver or service

posteo.de

Operating system

Debian 13.6

PHP engine version

Other

Nextcloud memory caching

Redis via unix socket (php8.4-redis)

Web server

Apache (supported)

Database

PostgreSQL

Additional info

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions