Commit 5b7bfbc3 authored by apapkovskiy's avatar apapkovskiy
Browse files

Added simple daemon mode

parent ca1498c4
-----BEGIN CERTIFICATE-----
MIIBQjCB6gIJAK73z82N6W6bMAoGCCqGSM49BAMCMEUxCzAJBgNVBAYTAkFVMRMw
EQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0
eSBMdGQwHhcNMTgxMjEwMTEwOTEzWhcNMjgxMjA3MTEwOTEzWjAPMQ0wCwYDVQQD
DARkZXYxMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE2vPYesmocPx/AjILggzB
+YfeLn0v/3n/kIrcUClb76/+2Cji/WYUNmVIhtvPV6+P9uy/Vp70dLx57Wix/rcF
eTAKBggqhkjOPQQDAgNHADBEAiAmhKAQwhn94fDsvSRCnnTzDHu6/r7qi/16FgYe
Sjy1iQIgTYMzWYazaCAjMOBK3WPD328XAYa8Svce5ByOYY0r7vY=
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
MIIB0TCCAXegAwIBAgIJALKU6f36XQnAMAoGCCqGSM49BAMCMEUxCzAJBgNVBAYT
AkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRn
aXRzIFB0eSBMdGQwHhcNMTgxMjEwMDkzOTE5WhcNMjgxMjA3MDkzOTE5WjBFMQsw
CQYDVQQGEwJBVTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50ZXJu
ZXQgV2lkZ2l0cyBQdHkgTHRkMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEZ/Wf
eeYhIfhHKAbWTQfpU6oQlzqi8G/9UJcQLRhkCXmdBjQN6PyeuI16O8wBXEPBAUrC
1l0R5+/Y6ldwNkIarKNQME4wHQYDVR0OBBYEFHWZRJxOikjvif01ZFBeXbnw92VZ
MB8GA1UdIwQYMBaAFHWZRJxOikjvif01ZFBeXbnw92VZMAwGA1UdEwQFMAMBAf8w
CgYIKoZIzj0EAwIDSAAwRQIhAO+Z+hzv2XJ0uT+yiyOIcc5dNyKrjuOyeu8RrMuE
KzktAiA6/ozj0I1FLAH3Q2R9M5xIZW/UHNxTwl8TuHPxOVe7jg==
-----END CERTIFICATE-----
-----BEGIN EC PRIVATE KEY-----
MHcCAQEEIBAAAAAAAAAAAAAAAAAAAAAAAAAAAAClprW2paa1thAAoAoGCCqGSM49
AwEHoUQDQgAE2vPYesmocPx/AjILggzB+YfeLn0v/3n/kIrcUClb76/+2Cji/WYU
NmVIhtvPV6+P9uy/Vp70dLx57Wix/rcFeQ==
-----END EC PRIVATE KEY-----
openssl_conf = nxp_engine
[nxp_engine]
engines = engine_section
[engine_section]
e2a71ch = e2a71ch_section
[e2a71ch_section]
engine_id = e2a71ch
dynamic_path = $ENV::SNAP/jrcp/lib/libsss_a71ch_engine.so
default_algorithms = RAND,ECDSA,ECDH
init = 1
-----BEGIN CERTIFICATE-----
MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsF
ADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6
b24gUm9vdCBDQSAxMB4XDTE1MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTEL
MAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZMBcGA1UEAxMQQW1hem9uIFJv
b3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJ4gHHKeNXj
ca9HgFB0fW7Y14h29Jlo91ghYPl0hAEvrAIthtOgQ3pOsqTQNroBvo3bSMgHFzZM
9O6II8c+6zf1tRn4SWiw3te5djgdYZ6k/oI2peVKVuRF4fn9tBb6dNqcmzU5L/qw
IFAGbHrQgLKm+a/sRxmPUDgH3KKHOVj4utWp+UhnMJbulHheb4mjUcAwhmahRWa6
VOujw5H5SNz/0egwLX0tdHA114gk957EWW67c4cX8jJGKLhD+rcdqsq08p8kDi1L
93FcXmn/6pUCyziKrlA4b9v7LWIbxcceVOF34GfID5yHI9Y/QCB/IIDEgEw+OyQm
jgSubJrIqg0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC
AYYwHQYDVR0OBBYEFIQYzIU07LwMlJQuCFmcx7IQTgoIMA0GCSqGSIb3DQEBCwUA
A4IBAQCY8jdaQZChGsV2USggNiMOruYou6r4lK5IpDB/G/wkjUu0yKGX9rbxenDI
U5PMCCjjmCXPI6T53iHTfIUJrU6adTrCC2qJeHZERxhlbI1Bjjt/msv0tadQ1wUs
N+gDS63pYaACbvXy8MWy7Vu33PqUXHeeE6V/Uq2V8viTO96LXFvKWlJbYK8U90vv
o/ufQJVtMVT8QtPHRh8jrdkPSHCa2XV4cdFyQzR1bldZwgJcJmApzyMZFo6IQ6XU
5MsI+yMRQ+hDKXJioaldXgjUkK642M4UwtBV8ob2xJNDd2ZhwLnoQdeXeGADbkpy
rqXRfboQnoZsG4q5WTP468SQvvG5
-----END CERTIFICATE-----
......@@ -5,17 +5,17 @@ description: |
NXP A71CH JRCP AWS Client for Rigado gateway
grade: devel
confinement: devmode
confinement: strict
slots:
plugs:
lib-cert:
interface: content
content: lib-cert
read:
- $SNAP/certs
target: certs
lib-engine:
interface: content
content: lib-engine
read:
- $SNAP/jrcp/lib
target: jrcp/lib
parts:
pub-sub-sample:
......@@ -44,5 +44,7 @@ apps:
OPENSSL_CONF: $SNAP/certs/opensslA71CH.cnf
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/jrcp/lib
command: bin/start-pub-sub-sample
plugs: &default-plugs [network-bind, network-control, network-setup-control, network]
daemon: simple
restart-condition: always
plugs: &default-plugs [network-bind, network-control, network-setup-control, network, lib-cert, lib-engine]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment