Open HemantBiharecwl opened 1 month ago
In v2 it's currently not possible. There is still work that needs to go into the certificate related endpoints for v2 that is waiting on some upstream pfSense changes. In the meantime, you can run the v1 and v2 packages at the same time and continue utilizing the v1 endpoint as usual.
there is no older version available in System/REST API /Update/ only v2 is showing
Refer to the v2 announcement and upgrade guide. v1 and v2 are separate packages and operate independently from each other.
If you removed v1, you can reinstall it as usual using the URL from the releases page. For example:
pkg-static -C /dev/null https://github.com/jaredhendrickson13/pfsense-api/releases/download/v1.7.5/pfSense-2.7-pkg-API.pkg
Diagnostics/Command Prompt
Shell Output - pkg-static -C /dev/null https://github.com/jaredhendrickson13/pfsense-api/releases/download/v1.7.5/pfSense-2.7-pkg-API.pkg pkg: unknown command: https://github.com/jaredhendrickson13/pfsense-api/releases/download/v1.7.5/pfSense-2.7-pkg-API.pkg
For more information on available commands and options see 'pkg help'.
Sorry I forgot the add
in the command:
pkg-static -C /dev/null add https://github.com/jaredhendrickson13/pfsense-api/releases/download/v1.7.5/pfSense-2.7-pkg-API.pkg
In v2 it's currently not possible. There is still work that needs to go into the certificate-related endpoints for v2 that is waiting on some upstream pfSense changes. In the meantime, you can run the v1 and v2 packages at the same time and continue utilizing the v1 endpoint as usual.
@jaredhendrickson13 Hello, I have a few questions.
@Coffee-Processing-Unit
{ "active": true, "descr": "CA-LP-2", "randomserial": true, "dn_city": "BGL", "dn_commonname": "CWL", "dn_country": "IN", "dn_organization": "CWL", "dn_state": "KTK", "keylen": 1024, "keytype": "RSA", "lifetime": 3650, "method": "internal", "digest_alg": "sha256", "type": "server", "serial": 1, "trust": false, "apply": true }
Error: { "code": 400, "status": "bad request", "response_id": "FIELD_IS_REQUIRED", "message": "Field
crt
is required.", "data": [] } How to give crt paramter. In previous versions by above paramters CA gets created. But it is asking for both crt and prv. Please fix this as soon as possible