Endpoint per stato e ciclo di vita del servizio
Desktop e web
/MANUALI
/- Firma un file caricato
Firma un file remoto
Firma un file remoto
Firma un digest Base64
Firma un file caricato
Namirial Sign API Service (2.0.0)
Namirial Sign: API Service
API Service è un servizio locale che espone un insieme di API utilizzate per la firma, l'autenticazione e il recupero delle informazioni di base sui certificati locali/di sistema, consentendo l'utilizzo di tali funzionalità da parte di applicazioni di terze parti.
Configurazione della porta
API Service si mette in ascolto su una porta configurabile nelle impostazioni di Namirial Sign. La porta predefinita è 11543. Una volta configurata la porta, qualsiasi applicazione di terze parti dovrà essere configurata per inviare richieste a tale porta.
Scarica la descrizione OpenAPI
Lingue
Server
Endpoint locale predefinito di API Service
https://127.0.0.1:11543
- Endpoint locale predefinito di API Servicehttps://127.0.0.1:11543/signUrl
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://127.0.0.1:11543/signUrl?pin=string&url=http%3A%2F%2Fexample.com&type=cades&result=link&filename=string&pkcs11=pkcs11&uploadUrl=http%3A%2F%2Fexample.com&signerName=string&page=0&x=0&y=0&w=0&h=0&imageUrl=http%3A%2F%2Fexample.com&tsaUrl=http%3A%2F%2Fexample.com&tsaUsername=string&tsaPassword=pa%24%24word'Risposta
application/json
{ "signed": "MIMByzUG..." }
- Endpoint locale predefinito di API Servicehttps://127.0.0.1:11543/signUrl
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://127.0.0.1:11543/signUrl?pin=string&url=http%3A%2F%2Fexample.com&type=cades&result=link&filename=string&pkcs11=pkcs11&uploadUrl=http%3A%2F%2Fexample.com&signerName=string&page=0&x=0&y=0&w=0&h=0&imageUrl=http%3A%2F%2Fexample.com&tsaUrl=http%3A%2F%2Fexample.com&tsaUsername=string&tsaPassword=pa%24%24word'Risposta
application/json
{ "signed": "MIMByzUG..." }
- Endpoint locale predefinito di API Servicehttps://127.0.0.1:11543/signHash
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://127.0.0.1:11543/signHash \
-H 'Content-Type: application/json' \
-d '{
"HashValueBase64": "VGhpcyBpcyBhIHRlc3Qgc3RyaW5nLg==",
"Thumbprint": "fcc3b7d22482973174bf326285ecf825c5e927d469acf1fc85e5dfb805876e1c",
"HashAlgorithm": "sha256",
"Pkcs11": "pkcs11",
"Texts": {
"Title": "Insert PIN",
"Message": "PIN",
"Buttons": {
"Confirm": "OK",
"Cancel": "Cancel"
},
"Errors": {
"WrongPin": "Wrong PIN",
"PinLocked": "PIN Locked"
}
}
}'Risposta
application/json
{ "Result": "T99WvOXO4sokSwfp6GVq9fWLGvbY5mF4WgqOJp0zRBSZWSfBpJ1OPl8O/AALaqAA748u7grrDNa35oad6B6TbRZ8/rp+nN1gqwKCs6Om5LPye9XXaC4APnaqPK95wRXmBJ0n/c9aGNr3HIkhDSZ8TLXj5cR72fU3ka7EsJAQl+Z/i+tV1fcnBQpjtRib7RyMQApBh+VJ0qmA73Hh5eD489/4aXR6lefqK8kUsX7o2CdPC2oIQRE4m8jpB+7IR9Zlv/00SYlE/xiAh9YxxsY4UwIFhJBaI8LRFUSpAgLvHgD6l6s+nQcxagGRFGovXF55m/GXn5wJfNohJuvPR9trZQ==", "Error": "", "Success": true }
- Endpoint locale predefinito di API Servicehttps://127.0.0.1:11543/signFile
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://127.0.0.1:11543/signFile \
-H 'Content-Type: multipart/form-data' \
-F pin=string \
-F sign_type=cades \
-F res_type=base64 \
-F filename=string \
-F input_file=string \
-F pkcs11=pkcs11 \
-F tsaUrl=http://example.com \
-F tsaUsername=string \
-F 'tsaPassword=pa$$word'Risposta
application/json
{ "result": "MIMByzUG..." }