semvec/pypi-packages huggingface dataset:
aos-keys 1.10.0b2
AosEdge private keys and certificate manager
License: Apache License 2.0
Requires Python: >=3.7

Aos user keys management tool
=====================
This tool is part of the AosEdge SDK.


Overview
--------
This tool will help you manage user certificates for Aos Cloud.

Using this tool you'll be able to:
* Issue new user certificate in pkcs12 format.
* Show info about user certificate.
* Convert PKCS12 certificate to PEM key and certificate files.


Prerequisites
--------------
* Python 3.7+


Installation
------------
```bash
python -m pip install aos-keys
```

Usage
------------

### Issue new user certificate:
```bash
aos-keys new-user -d {aoscloud.io} -t {token} {--oem|--sp|--fleet}
```
>Where: 
>* **-d** - Aos CLoud domain to register user
>* **-t** - User Token
>* **-oem** or **-sp** - Certificate for OEM or SP User 

Example:
```bash
aos-keys new-user -d aoscloud.io -t 1111 --oem
```

### Show info about certificate and related user:
```bash
aos-keys info -c {path-to-cert} {--oem|--sp|--fleet}
```
>Where: 
>* **-c** - Path to user certificate
>* **-sp** - Show info of default Service Provider user
>* **-oem** - Show info of default OEM user
>* **-fleet** - Show info of default Fleet Owner user
 
Example:
Show info about default SP user certificate
```bash
aos-keys info --sp
```
Show info about default OEM user certificate
```bash
aos-keys info --oem
```