gssapi-data is encoded by base64. It is actually apply to TLS protocol but encapsulated in SIP register and 401 response.
To get server certificate in gssapi-data, do below steps.
1. Extract gssapi-data from capture file. It is base64 encode.
2. Decode it using notepad++ TextFX Tool plugin. And get gssapi-data binary data (file: gssapi_data.bin).
3. using hping3 to craft a packet. and using tcpdump to capture the packet. 5787 is the file size of gssapi_data.bin.
hping -I lo -u -c 1 -p 443 127.0.0.1 -d 5787 -E gssapi_data.bin
tcpdump -i lo -s 0 -w gssapi_data.pcap
4. using wireshark open gssapi_data.pcap.
5. on TLSv1 packet right click on certificate in Server Hello packet. "Export selected packet data...".
Save it as server.der file. It maybe contains several certificates.
6. using openssl to conver DER to PEM format.
openssl x509 -in server.der -out server.pem -inform DER -outform PEM