Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

PEM format files not retaining format when pasting into Cryptr #44

@kangman

Description

@kangman

The problem

When pasting PEM formatted files the UI does not retain the newline format causing the file format to be incorrect

Environment

  • Cryptr version (or git revision) that exhibits the issue:
  • Desktop OS/version used to run Cryptr: v0.3.0
  • Vault version: v1.3.0

Details

When trying to store ssl files

  • csr
  • crt
  • private key

the pem format \n is lost when pasting into the cryptr app

One workaround was to regex the \n into the output of the file

awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' cert-name.crt
--

then paste that into the json view of cryptr. When using the other UI an extra \ is appended with \\n as the output.

Steps to Reproduce

  1. Have a pem formated file
  2. copy paste the output to cryptr UI
  3. then copy paste that saved information to another file or editor and see the format change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions