acme.sh icon indicating copy to clipboard operation
acme.sh copied to clipboard

feature request: wolfSSL support

Open benny-de opened this issue 2 years ago • 7 comments

On embedded devices like OpenWRT wifi routers is often not much free space e.g. 1,2 MB. OpenWRT switched to wolfSSL. Yes, you can install openssl too or instead of wolfssl on openwrt devices, but with 1,2 MB free space it is a problem. So it would be nice if acme.sh could support wolfSSL too. Thank you very much.

benny-de avatar Mar 04 '23 13:03 benny-de

does the wolfssl have a cli ? just like the openssl command.

Neilpang avatar Mar 04 '23 13:03 Neilpang

openwrt installs these wolfssl packages:

"# opkg list-installed |grep wolfssl" libustream-wolfssl20201210 - 2022-12-08-9217ab46-2 libwolfssl5.5.4.ee39414e - 5.5.4-stable-1 px5g-wolfssl - 6.2 wpad-basic-wolfssl - 2022-01-16-cff80b4f-15.2

=> "# px5g" PX5G X.509 Certificate Generator Utilit using WolfSSL Usage: [eckey|rsakey|selfsigned]

https://openwrt.org/packages/pkgdata/px5g-wolfssl https://github.com/openwrt/openwrt/blob/openwrt-21.02/package/utils/px5g-wolfssl/px5g-wolfssl.c

maybe this could help?

there is https://github.com/wolfSSL/wolfCLU#readme but this is not part of openwrt default image.

benny-de avatar Mar 04 '23 14:03 benny-de

There is a CLI for wolfSSL: https://github.com/wolfSSL/wolfCLU#readme

prologic avatar Dec 17 '24 14:12 prologic

It is involved as wolfssl

prologic avatar Dec 17 '24 14:12 prologic

Is anyone interested in this? I've successfully built a package for uLinux for the wolfssl CLI so I'm thinking about seeing if I can hack acme.sh to work with wolfssl.

prologic avatar Dec 26 '24 23:12 prologic

So one thing I've immediately noticed is that wolfssl lacks a ec mode, however it does have ecc. It also doesn't have a -text option. I'm not sure it can display a human-readable version of a private key?

prologic avatar Dec 26 '24 23:12 prologic

Is anyone interested in this? I've successfully built a package for uLinux for the wolfssl CLI so I'm thinking about seeing if I can hack acme.sh to work with wolfssl.

Yes, search for the functions that are using openssl command inside, if you can implement them all with wolfssl command, then that should work.

Neilpang avatar Dec 28 '24 19:12 Neilpang