All Projects → muzipiao → GMOpenSSL

muzipiao / GMOpenSSL

Licence: MIT license
openssl 1.1.1i 的 framework 版本,发布至 cocoapods,方便集成。

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to GMOpenSSL

lua-resty-openssl
FFI-based OpenSSL binding for OpenResty
Stars: ✭ 76 (+137.5%)
Mutual labels:  openssl
apple-pay
This library is used to decode tokens for Apple Pay.
Stars: ✭ 38 (+18.75%)
Mutual labels:  openssl
openssl-ca
Shell scripts to manage a private Certificate Authority using OpenSSL
Stars: ✭ 38 (+18.75%)
Mutual labels:  openssl
Simple-TLS-Client-Server-with-Node.js
Simple TLS Client/Server with Node.js
Stars: ✭ 22 (-31.25%)
Mutual labels:  openssl
openssl ca
openssl_ca with QT GUI
Stars: ✭ 16 (-50%)
Mutual labels:  openssl
StahpIt-WPF
Transparent HTTP/S Content Filter using Adblock Plus filters and CSS selectors for Windows Vista and later.
Stars: ✭ 52 (+62.5%)
Mutual labels:  openssl
learn-ssl
A set of example programs that demonstrate various OpenSSL functions and enable "learning by doing".
Stars: ✭ 15 (-53.12%)
Mutual labels:  openssl
conan-openssl
[OBSOLETE] The recipe is now in https://github.com/conan-io/conan-center-index
Stars: ✭ 25 (-21.87%)
Mutual labels:  openssl
Network-Learn
A cross-platform network learning demos. Like high-performance http server
Stars: ✭ 23 (-28.12%)
Mutual labels:  openssl
littleca
littleca是一个基于BC的小型ca库,支持ecc,rsa,dsa,sm2的证书签发,加密解密,签名验签操作,支持国密加解密,证书签发
Stars: ✭ 44 (+37.5%)
Mutual labels:  openssl
nodejs-certificate-auth
Demo for Client Certificate Authentication with Node.js Tutorial
Stars: ✭ 85 (+165.63%)
Mutual labels:  openssl
ngx http hmac secure link module
HMAC Secure Link module for NGINX.
Stars: ✭ 47 (+46.88%)
Mutual labels:  openssl
cloud-signature-consortium
Cloud Signature Consortium Remote Signature Service Provider in Node.js
Stars: ✭ 19 (-40.62%)
Mutual labels:  openssl
Qt-SslServer
Tcp Server class with SSL support using QTcpServer and QSslSocket. Requires Qt and -std=c++11 to compile. An OpenSSL implementation must also be available on the target machine.
Stars: ✭ 22 (-31.25%)
Mutual labels:  openssl
jscrypto
Crypto library for Node/ES6/Typescript/Browser.
Stars: ✭ 20 (-37.5%)
Mutual labels:  openssl
bproxy
high-performance minimal HTTP reverse proxy
Stars: ✭ 28 (-12.5%)
Mutual labels:  openssl
pki
Certificate Authority management suite
Stars: ✭ 23 (-28.12%)
Mutual labels:  openssl
openssl-android-build-scripts
Builds scripts for openSSL 1.0.2h on Android
Stars: ✭ 15 (-53.12%)
Mutual labels:  openssl
android-openssl
OpenSSL build for Android (arm, armv7, x86)
Stars: ✭ 69 (+115.63%)
Mutual labels:  openssl
webcert
WebCert is a Web application to generate and manage digital certificates in cases where no "full" CA is needed.
Stars: ✭ 20 (-37.5%)
Mutual labels:  openssl

GMOpenSSL

Version License Platform

cocoapods 不支持直接集成 OpenSSL,将 OpenSSL 源码编译为 framework,并发布至 cocoapods,名称为 GMOpenSSL,方便通过 cocoapods 集成。

版本映射

GMOpenSSL 版本 OpenSSL 版本 支持架构 Bitcode 兼容iOS版本
2.2.6 1.1.1l x86_64 arm64 包含 >= iOS 9.0
2.2.4 1.1.1l x86_64 arm64 arm64e armv7 armv7s 包含 >= iOS 8.0

CocoaPods

CocoaPods 是最简单方便的集成方法,编辑 Podfile 文件,添加

pod 'GMOpenSSL'

然后执行 pod install 即可,默认最新版本。

自定义编译 OpenSSL

如果编译的静态库不能满足需求,可以自行运行脚本编译。工程目录下有一个名称为 OpenSSL_BUILD 的文件夹,依次执行 cd 切换到当前目录下,然后执行./build-libssl.sh,待执行完毕再执行./create-openssl-framework.sh,即可看到编译完成的 openssl.framwork。

打包完成的静态库并未暴露国密的头文件,解压缩下载的 openssl 压缩包,如 openssl-1.1.1l.tar.gz,将 include/crypto/ 路径下的 sm2.h、sm3.h,sm4.h 都拖到 openssl.framework/Headers 文件夹下即可。

opensslconf.h 头文件条件编译末尾做如下修改

# error Unable to determine target or target not included in OpenSSL build

修改为:

# include <openssl/opensslconf_ios_arm64.h>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].