https://www.oschina.net/news/94188/acme-v2-and-wildcard-certificate-support-is-live https://my.oschina.net/kimver/blog/1634575 https://github.com/Neilpang/acme.sh/wiki/%E8%AF%B4%E6%98%8E ## Nginxåå代çhttpçtomcat 1,æ§è¡ curl https://get.acme.sh | sh 2,æ§è¡ source ~/.bashrc 3,æ§è¡ # é¿éäºåå°çå¯é¥ export Ali_Key="1858118" export Ali_Secret="1858118" # å¡«åèªå·±çåå acme.sh --issue --dns dns_ali -d springboot.io -d *.springboot.io * acme.shæ¯certbotçæ¹å¼æ´å èªå¨å,çå»äºæå¨å»åååå°æ¹DNSè®°å½çæ¥éª¤,èä¸ä¸ç¨ä¾èµPython * ç¬¬ä¸æ¬¡æåä¹å,acme.shä¼è®°å½ä¸App_Keyè·App_Secret,å¹¶ä¸çæä¸ä¸ªå®æ¶ä»»å¡,æ¯å¤©åæ¨0ï¼00èªå¨æ£æµè¿æååå¹¶ä¸èªå¨ç»æ * 对è¿ç§æ¹å¼æé¡¾èç,请æ é,ä¸è¿ä¹å¯ä»¥èªè¡å æç¨æ·çº§ç宿¶ä»»å¡,并䏿¸ çæ~/.acme.shæä»¶å¤¹å°±è¡ 4,å¨è¯ä¹¦çæç®å½æ§è¡ acme.sh --installcert -d springboot.io -d *.springboot.io \ --keypath /usr/local/ssl/springboot/springboot.io.key \ --fullchainpath /usr/local/ssl/springboot/springboot.io.pem * 伿keyåpemçæå°æå®çç®å½ 5,é ç½®nginx server { listen 443; server_name springboot.io www.springboot.io; ssl on; ssl_certificate /usr/local/ssl/springboot/springboot.io.pem; ssl_certificate_key /usr/local/ssl/springboot/springboot.io.key; access_log logs/springboot.io.log main; error_log logs/springboot.io.error.log; proxy_set_header Host $host; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Requested-For $remote_addr; proxy_set_header REMOTE-HOST $remote_addr; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; location / { proxy_pass http://127.0.0.1:1024; proxy_connect_timeout 600; proxy_read_timeout 600; } } server { listen 80; server_name springboot.io www.springboot.io; return 301 https://springboot.io$request_uri; } ## Springbootåç¬é ç½® 1,(å¨è¯ä¹¦çæç®å½)çækeystore * çæ p12 æä»¶(ä¼è¾å ¥ä¸æ¬¡å¯ç ) openssl pkcs12 -export -in fullchain.cer -inkey springboot.io.key -out springboot.io.p12 * æ ¹æ®p12 æä»¶çæ keystore æä»¶ keytool -importkeystore -v -srckeystore springboot.io.p12 -srcstoretype pkcs12 -srcstorepass [çæp2æä»¶çå¯ç ] -destkeystore springboot.io.keystore -deststoretype jks -deststorepass [key.storeçå¯ç ] * 妿æç¤ºè¦å,å¯ä»¥èèæ ¹æ®è¦åçå½ä»¤,åæ§è¡ä¸æ³¢ keytool -importkeystore -srckeystore springboot.io.keystore -destkeystore springboot.io.keystore -deststoretype pkcs12 2,springbooté ç½® #ssl server.ssl.enabled=true server.ssl.key-store=classpath:ssl/springboot.io.p12 server.ssl.key-store-type=PKCS12 server.ssl.key-store-password=[key.storeçå¯ç ] ---------------------------------- _add_a_and_b: push %ebx mov %eax, [%esp+8] mov %ebx, [%esp+12] add %eax, %ebx pop %ebx ret _main: push 3 push 2 call _add_a_and_b add %esp, 8 ret