mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-31 02:17:18 +00:00 
			
		
		
		
	_hmac use and generic date
This commit is contained in:
		
							parent
							
								
									eb23549cd6
								
							
						
					
					
						commit
						2ea5b283a8
					
				| @ -123,8 +123,8 @@ _me_rest() { | |||||||
|   data="$3" |   data="$3" | ||||||
|   _debug $ep |   _debug $ep | ||||||
| 
 | 
 | ||||||
|   cdate=$(date -Ru) |   cdate=$(date -u +"%a, %d %b %Y %T %Z") | ||||||
|   hmac=$(printf "$cdate" | openssl dgst -sha1 -hmac $ME_Secret | cut -d = -f 2 | tr -d ' ') |   hmac=$(printf "$cdate"  | _hmac  sha1  "$ME_Secret"   1) | ||||||
| 
 | 
 | ||||||
|   _H1="x-dnsme-apiKey: $ME_Key" |   _H1="x-dnsme-apiKey: $ME_Key" | ||||||
|   _H2="x-dnsme-requestDate: $cdate" |   _H2="x-dnsme-requestDate: $cdate" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user