Skip to contentSkip to conversation

package/sscep: new package

PATCH In review Dario Binacchi 2 participants 3 messages Nov 11, 2022 – Nov 23, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/sscep: new package

SSCEP is a client-only implementation of the SCEP (Cisco System's Simple Certificate Enrollment Protocol).

The goal of SCEP is to support the secure issuance of certificates to network devices in a scalable manner, using existing technology whenever possible. The protocol supports the following operations:

* CA and RA public key distribution
* Certificate enrollment
* Certificate and CRL query

Certificate and CRL access can be achieved by using the LDAP protocol, or by using the query messages defined in SCEP.

---
 DEVELOPERS               |  1 +
 package/Config.in        |  1 +
 package/sscep/Config.in  |  9 +++++++++
 package/sscep/sscep.hash |  3 +++
 package/sscep/sscep.mk   | 14 ++++++++++++++
 5 files changed, 28 insertions(+)
 create mode 100644 package/sscep/Config.in
 create mode 100644 package/sscep/sscep.hash
 create mode 100644 package/sscep/sscep.mk
DEVELOPERS +1 -0
index 81e6cd54abcc..f0ba196ad06b 100644
@@ -681,6 +681,7 @@ F:	package/luaexpat/
 F:	package/xinetd/
 
 N:	Dario Binacchi <[email protected]>
+F:	package/sscep/
 F:	package/uuu/
 
 N:	Dario Binacchi <[email protected]>
package/Config.in +1 -0
index aef80f9ab0f2..736428a4589d 100644
@@ -1949,6 +1949,7 @@ menu "Networking"
 	source "package/slirp4netns/Config.in"
 	source "package/snmppp/Config.in"
 	source "package/sofia-sip/Config.in"
+	source "package/sscep/Config.in"
 	source "package/sysrepo/Config.in"
 	source "package/thrift/Config.in"
 	source "package/usbredir/Config.in"
package/sscep/Config.in new file +9 -0
new file mode 100644
index 000000000000..d4847f1b8a75
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_SSCEP
+	bool "sscep"
+	depends on BR2_PACKAGE_OPENSSL
+	help
+	  SSCEP is a client-only implementation of the SCEP
+	  (Cisco System's Simple Certificate Enrollment Protocol).
+
+	  https://github.com/certnanny/sscep
+
package/sscep/sscep.hash new file +3 -0
new file mode 100644
index 000000000000..050f7feb1594
@@ -0,0 +1,3 @@
+# locally computed
+sha256  489cc8e093986776eb3f15082bf766778f707176f3cd604bf0ef1008da06b8e5  sscep-v0.10.0.tar.gz
+sha256  e1328c292102a22c10e8dcfbfda33740f603767c73f8c5b5189c5513eb6b4dea  COPYING
package/sscep/sscep.mk new file +14 -0
new file mode 100644
index 000000000000..f59f4bd03bbc
@@ -0,0 +1,14 @@
+################################################################################
+#
+# sscep
+#
+################################################################################
+
+SSCEP_VERSION = v0.10.0
+SSCEP_SITE = $(call github,certnanny,sscep,$(SSCEP_VERSION))
+SSCEP_LICENSE = BSD
+SSCEP_LICENSE_FILES = COPYING
+SSCEP_AUTORECONF = YES
+SSCEP_DEPENDENCIES += openssl
+
+$(eval $(autotools-package))
Signature · 6 lines
2.32.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hello Dario,

Quoted 11 lines · On Fri, 11 Nov 2022 14:32:54 +0100 Dario Binacchi…

SSCEP is a client-only implementation of the SCEP (Cisco System's Simple Certificate Enrollment Protocol).

The goal of SCEP is to support the secure issuance of certificates to network devices in a scalable manner, using existing technology whenever possible. The protocol supports the following operations:

* CA and RA public key distribution
* Certificate enrollment
* Certificate and CRL query

Quoted 6 lines

Certificate and CRL access can be achieved by using the LDAP protocol, or by using the query messages defined in SCEP.

Thanks for your contribution. I applied to master, but after fixing a number of things. See below.

package/sscep/Config.in line 3

Quoted 9 lines
package/sscep/Config.in new file +3 -0
new file mode 100644
index 000000000000..d4847f1b8a75
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_SSCEP
+	bool "sscep"
+	depends on BR2_PACKAGE_OPENSSL

This should have been a "select", not a "depends on".

Quoted 6 lines
package/sscep/sscep.mk new file +0 -0
new file mode 100644
index 000000000000..f59f4bd03bbc

package/sscep/sscep.mk line 8

Quoted 8 lines
package/sscep/sscep.mk new file +8 -0
@@ -0,0 +1,14 @@
+################################################################################
+#
+# sscep
+#
+################################################################################
+
+SSCEP_VERSION = v0.10.0
+SSCEP_SITE = $(call github,certnanny,sscep,$(SSCEP_VERSION))

This should have been:

+SSCEP_VERSION = 0.10.0
+SSCEP_SITE = $(call github,certnanny,sscep,v$(SSCEP_VERSION))

I.e the "v" prefix should not be in the VERSION variable.

package/sscep/sscep.mk line 9

Quoted 1 line
package/sscep/sscep.mk new file +1 -0
+SSCEP_LICENSE = BSD

BSD is not a valid SPDX license code and is not specific enough. I've changed this to:

+SSCEP_LICENSE = BSD-2-Clause, OpenSSL, OpenOSP

package/sscep/sscep.mk line 12

Quoted 3 lines
package/sscep/sscep.mk new file +3 -0
+SSCEP_LICENSE_FILES = COPYING
+SSCEP_AUTORECONF = YES
+SSCEP_DEPENDENCIES += openssl

+= is not needed, a simple = is sufficient. But more importantly, the host-pkgconf dependency was missing, causing the package to fail building.

I've addressed all those small issues when committing.

Thanks again!

Best regards,

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Hello Thomas,

Quoted 78 lines · Thomas Petazzoni

Hello Dario,

Quoted 11 lines · On Fri, 11 Nov 2022 14:32:54 +0100 Dario Binacchi…

SSCEP is a client-only implementation of the SCEP (Cisco System's Simple Certificate Enrollment Protocol).

The goal of SCEP is to support the secure issuance of certificates to network devices in a scalable manner, using existing technology whenever possible. The protocol supports the following operations:

* CA and RA public key distribution
* Certificate enrollment
* Certificate and CRL query

Quoted 6 lines

Certificate and CRL access can be achieved by using the LDAP protocol, or by using the query messages defined in SCEP.

Thanks for your contribution. I applied to master, but after fixing a number of things. See below.

package/sscep/Config.in line 3

Quoted 9 lines
package/sscep/Config.in new file +3 -0
new file mode 100644
index 000000000000..d4847f1b8a75
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_SSCEP
+     bool "sscep"
+     depends on BR2_PACKAGE_OPENSSL

This should have been a "select", not a "depends on".

Quoted 6 lines
package/sscep/sscep.mk new file +0 -0
new file mode 100644
index 000000000000..f59f4bd03bbc

package/sscep/sscep.mk line 8

Quoted 8 lines
package/sscep/sscep.mk new file +8 -0
@@ -0,0 +1,14 @@
+################################################################################
+#
+# sscep
+#
+################################################################################
+
+SSCEP_VERSION = v0.10.0
+SSCEP_SITE = $(call github,certnanny,sscep,$(SSCEP_VERSION))

This should have been:

(quoted diff) +2 -0
+SSCEP_VERSION = 0.10.0
+SSCEP_SITE = $(call github,certnanny,sscep,v$(SSCEP_VERSION))

I.e the "v" prefix should not be in the VERSION variable.

package/sscep/sscep.mk line 9

Quoted 1 line
package/sscep/sscep.mk new file +1 -0
+SSCEP_LICENSE = BSD

BSD is not a valid SPDX license code and is not specific enough. I've changed this to:

+SSCEP_LICENSE = BSD-2-Clause, OpenSSL, OpenOSP

package/sscep/sscep.mk line 12

Quoted 3 lines
package/sscep/sscep.mk new file +3 -0
+SSCEP_LICENSE_FILES = COPYING
+SSCEP_AUTORECONF = YES
+SSCEP_DEPENDENCIES += openssl

+= is not needed, a simple = is sufficient. But more importantly, the host-pkgconf dependency was missing, causing the package to fail building.

Quoted 1 line

I've addressed all those small issues when committing.

Thanks for your fixings and explanations.

Best regards,

Dario

Quoted 10 lines

Thanks again!

Best regards,

Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training
https://bootlin.com

Signature · 21 lines
Dario Binacchi

Embedded Linux Developer

[email protected]

__________________________________


Amarula Solutions SRL

Via Le Canevare 30, 31100 Treviso, Veneto, IT

T. +39 042 243 5310
[email protected]

www.amarulasolutions.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot