openssl genrsa -out lightRootCA.key 2048openssl req -x509 -new -nodes -key lightRootCA.key -sha256 -days 1024 -out lightRootCA.pem系统提示您输入如下信息,所有参数可以自定义。 Country Name (2 letter code) [AU]:国家,如CN。 State or Province Name (full name) []: 省份,如GD。 Locality Name (for example, city) []:城市,如SZ。 Organization Name (for example, company) []:组织,如Das。 Organizational Unit Name (for example, section) []:组织单位,如IoT。 Common Name (e.g. server FQDN or YOUR name) []: 名称(不为空!可以填入根证书相关信息),如das light。 Email Address []:邮箱地址,如1234567@163.com。
openssl genrsa -out verificationCert.key 2048openssl req -new -key verificationCert.key -out verificationCert.csr系统提示您输入如下信息,Common Name填写为验证证书的验证码,其他参数自定义。 Country Name (2 letter code) [AU]:国家,如CN。 State or Province Name (full name) []: 省份,如GD。 Locality Name (for example, city) []:城市,如SZ。 Organization Name (for example, company) []:组织,如Das。 Organizational Unit Name (for example, section) []:组织单位,如IoT。 Common Name (e.g. server FQDN or YOUR name) []:验证证书的验证码必填!!!在对应的设备CA根证书的详情页面获取 Email Address []:邮箱地址,如1234567@163.com。 Password[]:密码,如1234321。 Optional Company Name[]:公司名称,如Das。
openssl x509 -req -in verificationCert.csr -CA lightRootCA.pem -CAkey lightRootCA.key -CAcreateserial -out verificationCert.pem -days 500 -sha256