Swagger-spring-boot-starter starter starter starter starter starter starter starter starter starter starter starter starter
*gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect
gpg: no default secret key: No secret key
gpg: signing failed: No secret key
Copy the code
We can use the GPG command to look at the current key:
$GPG --list -- keys GPG: checking confidence database GPG: marginals needed: 3 ease-needed: 1 trust model: PGP Depth: 0 Validity: 1 Signed: 0 Trust: 0-, 0q, 0n, 0m, 0f, 1 u/Users/zhaiyongchao /. Gnupg/pubring KBX -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- the pub rsa2048, 2017-12-05 [SC] [expired: [expired] zhaiyongchao <[email protected]>Copy the code
You can see that the original key pair is invalid, so the following is to renew the expired key pair with GPG:
Step 1: Enter key editing
$GPG --edit-key XXXXXXXXXXXXXXX GPG (GnuPG) 2.2.3; Copyright (C) 2017 Free Software Foundation, Inc. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. The private key is available. The SEC rsa2048, / aaaaaaaaaaaaaaaa founded in: 2017-12-05 has expired, the 2019-12-05 can be used for: SC trust: absolute validity: expired SSB rsa2048, / BBBBBBBBBBBBBBBB founded in: (1). Zhaiyongchao <[email protected]>Copy the code
Step 2: Extend the expiration time of the private and public keys and save the changes
GPG > expire will change the lifetime of the main key. Please set an expiration date for this key. 0 = The key never expires <n> = The key expires in n days <n>w = The key expires in n weeks <n>m = The key expires in N months <n>y = The key expires in N years. What is the validity period of the key? (0) 0 keys never expire above correct? (y/n) y rsa2048, the SEC/aaaaaaaaaaaaaaaa founded in: 2017-12-05 valid to: never expire Can be used for: SC trust: absolute validity: absolute SSB rsa2048, / BBBBBBBBBBBBBBBB founded in: Zhaiyongchao <[email protected]> GPG: WARNING: Your encryption subkey expires soon. gpg: You may want to change its expiration date too. GPG > key 1 SEC rSA2048 / aaAAAAAAaaaAAA created in: 2017-12-05 valid to: SSB * rsa2048/ rsa2048 E [absolute] (1). Zhaiyongchao <[email protected]> GPG > expire will change the lifetime of child keys. Please set an expiration date for this key. 0 = The key never expires <n> = The key expires in n days <n>w = The key expires in n weeks <n>m = The key expires in N months <n>y = The key expires in N years. What is the validity period of the key? (0) 0 keys never expire above correct? (y/n) y rsa2048, the SEC/aaaaaaaaaaaaaaaa founded in: 2017-12-05 valid to: never expire Can be used for: SC trust: absolute validity: absolute rsa2048, SSB * / BBBBBBBBBBBBBBBB founded in: (1). Zhaiyongchao <[email protected]> GPG > saveCopy the code
That’s it. Try MVN deploy to publish your content to a central repository
Program monkey DD- Zhai Yongchao
CC BY 3.0 CN