Skip to content

np setup fails to parse newly-generated keypair #166

@rokroskar

Description

@rokroskar

Hello! 👋

I've tried creating a keypair a few different ways (openssl genrsa and using the pycryptodome library) - I can read the keys with pycryptodome but the np setup process fails with:

 .../Projects/nanopubs/.venv/lib/python3.10/site-packages/Crypto/PublicKey/RSA.py:853 in   │
│ import_key                                                                                       │
│                                                                                                  │
│   850 │   │   # This is probably a DER encoded key                                               │
│   851 │   │   return _import_keyDER(extern_key, passphrase)                                      │
│   852 │                                                                                          │
│ ❱ 853 │   raise ValueError("RSA key format is not supported")                                    │
│   854                                                                                            │
│   855                                                                                            │
│   856 # Backward compatibility                                                                   │
│ 

What are the requirements for the keys? Do you have some instructions on how to generate a keypair that works?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions